智能体配置

This commit is contained in:
吉鑫升 committed 2026-05-13 20:04:06 +08:00
1 parent 83d7fa26fe
commit 31abad86d5
12 files changed
+1127 -752

No files matched your search

@@ -17,6 +17,7 @@ def setup_agent(
soul: str,
description: str,
runtime: ToolRuntime,
name: str | None = None,
skills: list[str] | None = None,
) -> Command:
"""Setup the custom DeerFlow agent.
@@ -24,6 +25,8 @@ def setup_agent(
Args:
soul: Full SOUL.md content defining the agent's personality and behavior.
description: One-line description of what the agent does.
name: Optional human-readable display name for the agent. If omitted,
the agent's stable id is used as the display name.
skills: Optional list of skill names this agent should use. None or empty means no skills.
"""
@@ -40,7 +43,8 @@ def setup_agent(
if agent_name:
# If agent_name is provided, we are creating a custom agent in the agents/ directory
config_data: dict = {"id": agent_name, "name": agent_name}
display_name = (name or "").strip() or agent_name
config_data: dict = {"id": agent_name, "name": display_name}
if description:
config_data["description"] = description
if skills is not None: