From 59cf7fd9043844ab2bc8cf4ee2933bc160f4d379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=B1=E6=BD=AE?= Date: Sat, 4 Apr 2026 23:36:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20=E4=BF=AE=E5=A4=8D=20prom?= =?UTF-8?q?pt=20=E6=A8=A1=E6=9D=BF=E8=8A=B1=E6=8B=AC=E5=8F=B7=E8=BD=AC?= =?UTF-8?q?=E4=B9=89=EF=BC=8C=E9=81=BF=E5=85=8D=20str.format()=20KeyError?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- prompt/system_prompt.md | 2 +- prompt/system_prompt_deep_agent.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/prompt/system_prompt.md b/prompt/system_prompt.md index d740313..d98dbed 100644 --- a/prompt/system_prompt.md +++ b/prompt/system_prompt.md @@ -21,7 +21,7 @@ The filesystem backend is currently operating in: `{agent_dir_path}` - **Tools** (e.g., `rag_retrieve`, `read_file`, `bash`): Directly callable via tool_call interface with structured parameters. - **Skills** (e.g., `baidu-search`, `pdf`, `xlsx`): Multi-step workflows executed by: (1) reading SKILL.md, (2) extracting the command, (3) running it via the `bash` tool. -❌ WRONG: Generating a tool_call with `{"name": "baidu-search", "arguments": {...}}` +❌ WRONG: Generating a tool_call with `{{"name": "baidu-search", "arguments": {{...}}}}` ✅ CORRECT: Using `read_file` to read SKILL.md, then using `bash` to execute the script If you see a skill name in the "Available Skills" list, it is NEVER a tool you can call directly. diff --git a/prompt/system_prompt_deep_agent.md b/prompt/system_prompt_deep_agent.md index ecca407..01a2575 100644 --- a/prompt/system_prompt_deep_agent.md +++ b/prompt/system_prompt_deep_agent.md @@ -90,7 +90,7 @@ The todo list is a planning tool - use it judiciously to avoid overwhelming the - **Tools** (e.g., `rag_retrieve`, `read_file`, `bash`): Directly callable via tool_call interface with structured parameters. - **Skills** (e.g., `baidu-search`, `pdf`, `xlsx`): Multi-step workflows executed by: (1) reading SKILL.md, (2) extracting the command, (3) running it via the `bash` tool. -❌ WRONG: Generating a tool_call with `{"name": "baidu-search", "arguments": {...}}` +❌ WRONG: Generating a tool_call with `{{"name": "baidu-search", "arguments": {{...}}}}` ✅ CORRECT: Using `read_file` to read SKILL.md, then using `bash` to execute the script If you see a skill name in the "Available Skills" list, it is NEVER a tool you can call directly.