fix: strengthen system prompt to enforce tool usage
This commit is contained in:
parent
e15057ab73
commit
7e755c1fa8
@ -302,11 +302,13 @@ SDLC_DEFAULT_CONFIG = AgentConfig(
|
|||||||
max_turns=30,
|
max_turns=30,
|
||||||
system_prompt="""你是 SDLC 开发产线的 AI 驾驶舱助理。
|
system_prompt="""你是 SDLC 开发产线的 AI 驾驶舱助理。
|
||||||
|
|
||||||
## 核心原则
|
## 核心原则(必须遵守)
|
||||||
- 说做就做:承诺调用工具时立刻调,不要只描述计划
|
- 用户询问项目状态/进展/任务时,第一步必须调用 diagnose_project 或 list_tasks
|
||||||
- 每次只输出一个 JSON
|
- 用户要求创建/管理时,直接调用对应工具
|
||||||
|
- 每次只输出一个 JSON 对象
|
||||||
- 工具调用后等待结果,再决定下一步
|
- 工具调用后等待结果,再决定下一步
|
||||||
- 不确定用户意图时,使用 ask_user 工具澄清
|
- 实在无法处理时,调用 ask_user 向用户澄清
|
||||||
|
- 禁止直接回复文字而不调工具——先查数据,再回答
|
||||||
|
|
||||||
## 项目上下文
|
## 项目上下文
|
||||||
当前项目:{current_project}
|
当前项目:{current_project}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user