jack 3 months ago
parent
commit
2dd41317be
1 changed files with 1 additions and 17 deletions
  1. 1 17
      app/core/tools/file_search_tool.py

+ 1 - 17
app/core/tools/file_search_tool.py

@@ -147,23 +147,7 @@ class FileSearchTool(BaseTool):
         if (self.__keys and len(self.__keys) > 0) or (
             self.__dirkeys and len(self.__dirkeys) > 0
         ):
-            return (
-                "当遇到以下情况时,你必须直接调用[filesearch]工具:"
-                + "1. 用户需要从文件/文档中检索具体内容"
-                + "2. 涉及查找数据、条款或技术细节"
-                + '3. 明确出现"搜索文档"、"查找文件"等指令'
-                + "调用规范:"
-                + "1. 自动从对话中提取以下参数:"
-                + '   - query: "The keyword or phrase to search for, supporting exact matches."'
-                + "2. 严格使用JSON格式发起函数调用:"
-                + "```json"
-                + "{"
-                + '  "tool": "filesearch",'
-                + '  "parameters": {'
-                + '    query:"The keyword or phrase to search for, supporting exact matches."'
-                + "  }"
-                + "}"
-            )
+            return ""
         else:
             return ""