|
@@ -32,21 +32,11 @@ class FileSearchTool(BaseTool):
|
|
|
name: str = "file_search"
|
|
|
description: str = (
|
|
|
"Note: This tool should be used when asking about specific content within files."
|
|
|
- "FileSearch Tool Specification"
|
|
|
- + "Functionality:"
|
|
|
- + "A specialized knowledge retrieval system that interfaces with user-uploaded document repositories. Implements semantic search algorithms to surface relevant content segments in response to natural language queries."
|
|
|
- + "Operational Constraints:"
|
|
|
+ "## Operational Constraints:"
|
|
|
+ "Singleton operation: Strictly 1 invocation per API call"
|
|
|
- + "Input Requirements:"
|
|
|
- + "Natural language question (UTF-8 encoded string)"
|
|
|
- + "Output Specifications:"
|
|
|
- + "Returns JSON object containing:"
|
|
|
- + "relevant_excerpts: ["
|
|
|
- + "{"
|
|
|
- + '"text": (filename):(matched text segment),'
|
|
|
- + '"score": (0.0-1.0 relevance score)'
|
|
|
- + "}"
|
|
|
- + "]"
|
|
|
+ "## Functionality:"
|
|
|
+ + "A specialized knowledge retrieval system that interfaces with user-uploaded document repositories. Implements semantic search algorithms to surface relevant content segments in response to natural language queries."
|
|
|
+ "## Input Requirements:" + "Natural language question (UTF-8 encoded string)"
|
|
|
)
|
|
|
"""
|
|
|
description: str = (
|