|
@@ -151,7 +151,10 @@ class FileSearchTool(BaseTool):
|
|
|
if (self.__keys and len(self.__keys) > 0) or (
|
|
|
self.__dirkeys and len(self.__dirkeys) > 0
|
|
|
):
|
|
|
- return "" # "## 能力限制:每次请求将会限制为最多使用三种工具,并且每种工具每次只能使用一次。这样可以保证每次操作都更加简洁和有效。" # "## Top Important: Please use the 'file_search' tool to search for relevant content or keywords. Summarize the content or keywords and provide them for 'file_search' tool usage. Please ensure that the 'file_search' tool is used only once per request."
|
|
|
+ return (
|
|
|
+ 'You can use the "retrieval" tool to access relevant context . '
|
|
|
+ + "Please keep your queries concise for the best results."
|
|
|
+ ) # "## 能力限制:每次请求将会限制为最多使用三种工具,并且每种工具每次只能使用一次。这样可以保证每次操作都更加简洁和有效。" # "## Top Important: Please use the 'file_search' tool to search for relevant content or keywords. Summarize the content or keywords and provide them for 'file_search' tool usage. Please ensure that the 'file_search' tool is used only once per request."
|
|
|
else:
|
|
|
return ""
|
|
|
|