FileSearchTool
A tool for searching files. This tool allows an AI agent to search for files based on a query.
Class Diagram
Section titled “Class Diagram”---
title: FileSearchTool
config:
look: handDrawn
theme: colorful
class:
hideEmptyMembersBox: true
---
classDiagram
class Tool {
+string name
+string kind
+string description
+Binding[] bindings
}
Tool <|-- FileSearchTool
class FileSearchTool {
+string kind
+Connection connection
+string[] vectorStoreIds
+int32 maximumResultCount
+string ranker
+float32 scoreThreshold
+dictionary filters
}
Yaml Example
Section titled “Yaml Example”kind: file_searchconnection: kind: referencevectorStoreIds: - vectorStore1 - vectorStore2maximumResultCount: 10ranker: autoscoreThreshold: 0.5filters: fileType: pdf createdAfter: 2023-01-01Properties
Section titled “Properties”| Name | Type | Description |
|---|---|---|
| kind | string | The kind identifier for file search tools |
| connection | Connection | The connection configuration for the file search tool |
| vectorStoreIds | string[] | The IDs of the vector stores to search within. |
| maximumResultCount | int32 | The maximum number of search results to return. |
| ranker | string | File search ranker. |
| scoreThreshold | float32 | Ranker search threshold. |
| filters | dictionary | Additional filters to apply during the file search. |