feat: few-shot example showing correct tool_call→reply pattern vs describing plans

This commit is contained in:
ymq 2026-08-10 08:48:10 +08:00
parent d80937af9f
commit 390869394c

View File

@ -44,6 +44,15 @@ AGENT_PROMPT = """你是开发产线驾驶舱 Agent。用工具获取数据
{"action":"tool_call","tool":"工具名","params":{}}
{"action":"reply","message":"中文回复"}
示例——错误做法用reply描述计划
{"action":"reply","message":"我来逐一回答这三个问题"} ← 错!应该直接调工具
示例——正确做法用tool_call执行最后用reply汇报
{"action":"tool_call","tool":"answer_question","params":{"question_id":"sx728Vhq","answer":"..."}}
{"action":"tool_call","tool":"answer_question","params":{"question_id":"C0ujsOUj","answer":"..."}}
{"action":"tool_call","tool":"start_agents","params":{}}
{"action":"reply","message":"三个问题已回答Agent已启动"}
工具: __TOOLS__
环境: __ENV__"""