Compare commits

...

3 Commits

Author SHA1 Message Date
朱潮
13fcae0d96 Merge branch 'developing' into bot_manager 2026-04-04 23:36:16 +08:00
朱潮
59cf7fd904 🐛 fix: 修复 prompt 模板花括号转义,避免 str.format() KeyError
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 23:36:09 +08:00
朱潮
2216b01dcb 🐛 fix: 修复 prompt 模板花括号转义及 tool_call_chunk 安全访问
- prompt 中 JSON 示例的 {} 被 str.format() 误解析为模板变量,转义为 {{}}
- tool_call_chunk 改用 .get() 安全访问,避免 KeyError

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 23:35:12 +08:00
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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.