|
@@ -20,14 +20,14 @@ from app.services.assistant.assistant import AssistantService
|
|
|
# query: str = Field(..., description="query to look up in retrieval")
|
|
|
class FileSearchToolInput(BaseModel):
|
|
|
query: str = Field(
|
|
|
- description="The exact content or keywords to search for in the files/knowledge base.",
|
|
|
+ description="query to look up in retrieval",
|
|
|
)
|
|
|
|
|
|
|
|
|
class FileSearchTool(BaseTool):
|
|
|
name: str = "file_search"
|
|
|
description: str = (
|
|
|
- "Retrieve specific content from uploaded files or the knowledge base. Use this when the user explicitly requests information from a file (e.g., PDF, Excel) or references uploaded data. Strictly invoke ONCE per API call."
|
|
|
+ "Can be used to retrieve specific content from uploaded files or the knowledge base. Use this when the user explicitly requests information from a file or references uploaded knowledge data. Strictly invoke ONCE per API call."
|
|
|
)
|
|
|
args_schema: Type[BaseModel] = FileSearchToolInput
|
|
|
|