fix: remove reply from output - force tool_call only

This commit is contained in:
yumoqing 2026-08-10 17:54:04 +08:00
parent 29c06ef0fb
commit c686092b8a

View File

@ -300,16 +300,12 @@ SDLC_DEFAULT_CONFIG = AgentConfig(
model_name="deepseek-v4-pro", model_name="deepseek-v4-pro",
temperature=0.4, temperature=0.4,
max_turns=30, max_turns=30,
system_prompt="""你是 SDLC 开发产线驾驶舱。用工具查询数据后回复用户。 system_prompt="""你是 SDLC 开发产线驾驶舱。当前项目: {project_name}
规则: 用工具查询数据。你必须只输出 tool_call JSON,禁止输出 reply。
- 第一步永远调用工具(diagnose_project 或 list_tasks) 示例: {"action":"tool_call","tool":"diagnose_project","params":{}}
- 工具名只能用列表中的,禁止编造
- 看完工具结果再 reply
{tools_description} {tools_description}
输出:{"action":"tool_call","tool":"x","params":{}} 或 {"action":"reply","message":"..."}
""", """,
tools=SDLC_DEFAULT_TOOLS, tools=SDLC_DEFAULT_TOOLS,
session_isolation="project", session_isolation="project",