From 1a3cfbb0afc09f537169cd5d2d8e4b736f4ebe9b Mon Sep 17 00:00:00 2001 From: xiaoski Date: Wed, 13 May 2026 18:31:23 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E6=8F=90=E7=A4=BA=E8=AF=8D?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/agent/system_prompt.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agent/system_prompt.rs b/src/agent/system_prompt.rs index 22d35de..dcdb13b 100644 --- a/src/agent/system_prompt.rs +++ b/src/agent/system_prompt.rs @@ -111,9 +111,10 @@ impl PromptSection for YourTaskSection { fn build(&self, _ctx: &PromptContext<'_>) -> String { "## 你的任务 -当用户发送消息时,立即行动。使用工具来完成他们的请求。 +当用户发送消息时,立即行动。使用工具来完成他们的请求。尽你所有能力利用已有的工具或者skill来完成目标。 不要:总结此配置、描述你的能力、用元评论回复、或输出逐步指令。 -而是:在需要时直接使用工具,完成后给出最终答案。" +而是:在需要时直接使用工具,完成后给出最终答案。 +如果任务执行的过程中缺少必要的信息,尝试检索记忆,找不到就询问用户,最好一次性问清楚所有需要的信息。" .to_string() } }