WebSearchToolboxTool interface
一个存储在工具箱中的网络搜索工具。
- 扩展
属性
| custom_search_configuration | 附加到此工具的project连接。 最多可以有 1 个连接资源附加到该工具。 |
| external_web_access | 允许实时互联网访问以进行网页搜索。 省略时默认为真。 当错误时,网页搜索工具会以离线/仅缓存模式运行,无法获取新的外部内容。 |
| filters | 限制网络搜索结果到允许的域名的过滤器。 |
| search_context_size | 用于搜索的上下文窗口空间量的高级指南。
|
| type | 工具箱工具类型。 总是 |
| user_location | 用户的大致位置,用于提升网络搜索结果的相关性。 |
继承属性
| description | 可选的用户自定义描述,用于该工具或配置。 |
| name | 该工具或配置可选择用户自定义名称。 |
| tool_configs | 每个工具的配置图。 键是工具名称或 |
属性详细信息
custom_search_configuration
附加到此工具的project连接。 最多可以有 1 个连接资源附加到该工具。
custom_search_configuration?: WebSearchConfiguration
属性值
external_web_access
允许实时互联网访问以进行网页搜索。 省略时默认为真。 当错误时,网页搜索工具会以离线/仅缓存模式运行,无法获取新的外部内容。
external_web_access?: boolean
属性值
boolean
filters
search_context_size
用于搜索的上下文窗口空间量的高级指南。
low、medium、或high之一。
medium 是默认值。
search_context_size?: "low" | "medium" | "high"
属性值
"low" | "medium" | "high"
type
工具箱工具类型。 总是 web_search 为了网络搜索工具。
type: "web_search"
属性值
"web_search"
user_location
用户的大致位置,用于提升网络搜索结果的相关性。
user_location?: WebSearchApproximateLocation
属性值
继承属性详细信息
description
name
tool_configs
每个工具的配置图。 键是工具名称或 * (通用默认)。
分辨率排序:精确的刀具名称匹配优先于 *。
未知的工具名称在运行时会被无声地忽略。
tool_configs?: Record<string, ToolConfig>
属性值
Record<string, ToolConfig>