From 390869394c1b2d8134a72a28ca56015902537705 Mon Sep 17 00:00:00 2001 From: ymq Date: Mon, 10 Aug 2026 08:48:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20few-shot=20example=20showing=20correct?= =?UTF-8?q?=20tool=5Fcall=E2=86=92reply=20pattern=20vs=20describing=20plan?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/cockpit_chat.dspy | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wwwroot/api/cockpit_chat.dspy b/wwwroot/api/cockpit_chat.dspy index c141e40..bcb0acb 100644 --- a/wwwroot/api/cockpit_chat.dspy +++ b/wwwroot/api/cockpit_chat.dspy @@ -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__"""