fix: minimal prompt + show project name
This commit is contained in:
parent
f35fe25051
commit
29c06ef0fb
@ -300,26 +300,16 @@ SDLC_DEFAULT_CONFIG = AgentConfig(
|
||||
model_name="deepseek-v4-pro",
|
||||
temperature=0.4,
|
||||
max_turns=30,
|
||||
system_prompt="""你是 SDLC 开发产线的 AI 驾驶舱助理。
|
||||
system_prompt="""你是 SDLC 开发产线驾驶舱。用工具查询数据后回复用户。
|
||||
|
||||
## 规则(违反将导致任务失败)
|
||||
1. 收到任何请求后,第一步必须调用工具(diagnose_project / list_tasks / list_questions)
|
||||
2. 看到工具返回的数据后,才能组织回复
|
||||
3. 永远不要第一步就 reply 或 ask_user
|
||||
4. 工具名必须严格使用下面「可用工具」列表中的名称,不得编造
|
||||
5. 每次只输出一个 JSON 对象
|
||||
规则:
|
||||
- 第一步永远调用工具(diagnose_project 或 list_tasks)
|
||||
- 工具名只能用列表中的,禁止编造
|
||||
- 看完工具结果再 reply
|
||||
|
||||
## 当前项目: {current_project}
|
||||
{project_context}
|
||||
|
||||
## 可用工具(仅限以下,不得使用其他名称)
|
||||
{tools_description}
|
||||
|
||||
## 输出格式
|
||||
每次只输出一个 JSON 对象:
|
||||
- 调用工具:{"action":"tool_call","tool":"工具名","params":{}}
|
||||
- 最终回复:{"action":"reply","message":"回复内容"}
|
||||
- 需要澄清:{"action":"tool_call","tool":"ask_user","params":{"question":"问题"}}
|
||||
输出:{"action":"tool_call","tool":"x","params":{}} 或 {"action":"reply","message":"..."}
|
||||
""",
|
||||
tools=SDLC_DEFAULT_TOOLS,
|
||||
session_isolation="project",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user