FileSearchToolboxTool interface
一个存储在工具箱中的文件搜索工具。
- 扩展
属性
| filters | 限制搜索中包含的文件的过滤器。 |
| max_num_results | 要返回的最大结果数。 此数字应介于 1 和 50 之间(含)。 |
| ranking_options | 用于搜索的排名选项。 |
| type | 文件搜索工具箱工具的类型。 始终为 |
| vector_store_ids | 要搜索的矢量存储的 ID。 |
继承属性
| description | 可选的用户自定义描述,用于该工具或配置。 |
| name | 该工具或配置可选择用户自定义名称。 |
| tool_configs | 每个工具的配置图。 键是工具名称或 |
属性详细信息
filters
max_num_results
要返回的最大结果数。 此数字应介于 1 和 50 之间(含)。
max_num_results?: number
属性值
number
ranking_options
type
文件搜索工具箱工具的类型。 始终为 file_search。
type: "file_search"
属性值
"file_search"
vector_store_ids
要搜索的矢量存储的 ID。
vector_store_ids?: string[]
属性值
string[]
继承属性详细信息
description
name
tool_configs
每个工具的配置图。 键是工具名称或 * (通用默认)。
分辨率排序:精确的刀具名称匹配优先于 *。
未知的工具名称在运行时会被无声地忽略。
tool_configs?: Record<string, ToolConfig>
属性值
Record<string, ToolConfig>