|
@@ -28,10 +28,11 @@ class FileSearchTool(BaseTool):
|
|
|
name: str = "file_search"
|
|
|
description: str = (
|
|
|
"This tool must be called when the question involves the following situations:"
|
|
|
- + " - Asking for specific content in files/documents"
|
|
|
- + " - Need to find data, terms, or technical details"
|
|
|
- + ' - The user explicitly requests "search files" or "search materials"'
|
|
|
- "Retrieves content from specified files based on the keywords or phrases requested above, returning matching text snippets."
|
|
|
+ + " - Asking for specific content in files/documents"
|
|
|
+ + " - Need to find data, terms, or technical details"
|
|
|
+ + ' - The user explicitly requests "search files" or "search materials"'
|
|
|
+ "Useful for when you need to answer questions about current events. "
|
|
|
+ "Input should be a search query."
|
|
|
)
|
|
|
|
|
|
args_schema: Type[BaseModel] = FileSearchToolInput
|