|
@@ -27,10 +27,12 @@ class FileSearchToolInput(BaseModel):
|
|
|
class FileSearchTool(BaseTool):
|
|
|
name: str = "file_search"
|
|
|
description: str = (
|
|
|
- "Can be used to look up knowledge base information that was uploaded to this assistant.\n"
|
|
|
- + "If the user is retrieve specified content from the knowledge base or file system, that is often a good hint that information may be here.\n"
|
|
|
- + "Retrieve content from files or knowledge base (similar to database lookup, document search, or information fetching) \n"
|
|
|
- + "Singleton operation: Strictly 1 invocation per API call"
|
|
|
+ "When a user requests specific knowledge, document content, or related information, the retrieval function should be invoked. This includes:"
|
|
|
+ + "- User explicitly asking to find or retrieve certain information"
|
|
|
+ + "- User inquiring about specific content in the knowledge base or uploaded files"
|
|
|
+ + "- User questions involving specialized/domain-specific knowledge likely stored in the knowledge base"
|
|
|
+ + "- User queries requiring access to complete documents or large datasets for accurate answers"
|
|
|
+ + "Singleton operation: Strictly 1 invocation per API call. "
|
|
|
)
|
|
|
args_schema: Type[BaseModel] = FileSearchToolInput
|
|
|
|