WebSearchTool interface
在网上搜索与该提示相关的资料。 详细了解 web 搜索工具。
- 扩展
属性
| custom_search_configuration | 附加到此工具的project连接。 最多可以有 1 个连接资源附加到该工具。 |
| description | Deprecated. 该属性已被弃用,未来版本中将被移除。 |
| filters | 适用于网络搜索结果的筛选条件。 |
| name | Deprecated. 该属性已被弃用,未来版本中将被移除。 |
| search_context_size | 用于搜索的上下文窗口空间量的高级指南。
|
| tool_configs | Deprecated. 该属性已被弃用,未来版本中将被移除。 |
| type | Web 搜索工具的类型。
|
| user_location | 用户的大致位置,用于搜索相关性。 |
属性详细信息
custom_search_configuration
附加到此工具的project连接。 最多可以有 1 个连接资源附加到该工具。
custom_search_configuration?: WebSearchConfiguration
属性值
description
Deprecated. 该属性已被弃用,未来版本中将被移除。
description?: string
属性值
string
filters
name
Deprecated. 该属性已被弃用,未来版本中将被移除。
name?: string
属性值
string
search_context_size
用于搜索的上下文窗口空间量的高级指南。
low、medium 或 high 之一。
medium 是默认值。
search_context_size?: "low" | "medium" | "high"
属性值
"low" | "medium" | "high"
tool_configs
Deprecated. 该属性已被弃用,未来版本中将被移除。
tool_configs?: Record<string, ToolConfig>
属性值
Record<string, ToolConfig>
type
Web 搜索工具的类型。
web_search 或 web_search_2025_08_26 中的一项。
type: "web_search"
属性值
"web_search"