增加智能体

This commit is contained in:
许海洋 committed 2026-05-20 17:38:04 +08:00
1 parent 39def1c20b
commit 37bd8c6591
10 files changed
+600 -90

No files matched your search

@@ -823,6 +823,7 @@ def apply_prompt_template(
writing_artifact_path: str | None = None,
available_skills: set[str] | None = None,
app_config: AppConfig | None = None,
soul_override: str | None = None,
) -> str:
storage_agent_id = agent_id if agent_id is not None else agent_name
@@ -894,7 +895,7 @@ Writing mode is enabled for this run.
# Format the prompt with dynamic skills and memory
prompt = SYSTEM_PROMPT_TEMPLATE.format(
agent_name=agent_name or storage_agent_id or "CM 助手",
soul=get_agent_soul(storage_agent_id),
soul=f"<soul>\n{soul_override}\n</soul>\n" if soul_override else get_agent_soul(storage_agent_id),
skills_section=skills_section,
deferred_tools_section=deferred_tools_section,
writing_mode_section=writing_mode_section,