fix: 移除提示词中的'插件'术语,统一为'工具',强制 JSON 格式调用防止直接拼接参数

This commit is contained in:
艾轮 卧壳 committed 2026-04-26 23:34:46 +08:00
1 parent c51fe6accc
commit 98c9e51dc2
3 files changed
+32 -19

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
"""
代码工具插件 - 统一的代码编辑与搜索能力
代码工具 - 统一的代码编辑与搜索能力
合并原 code_editor + code_search,消除重复
"""
import os
@@ -49,7 +49,7 @@ class Plugin:
def get_tool_info(self):
return {
"name": "code_editor",
"description": "代码编辑与搜索 - 精准替换、批量编辑、代码搜索、符号提取、依赖分析、diff对比",
"description": "代码编辑与搜索 — 精准替换、批量编辑、代码搜索、符号提取、依赖分析、diff对比",
"keywords": ["编辑", "修改", "代码", "文件", "edit", "replace", "search", "diff",
"find", "grep", "符号", "structure", "imports", "todo", "callers"],
"usage": self.usage