你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WebSearchTool interface

在网上搜索与该提示相关的资料。 详细了解 web 搜索工具

扩展

属性

custom_search_configuration

附加到此工具的project连接。 最多可以有 1 个连接资源附加到该工具。

description

可选的用户自定义描述,用于该工具或配置。

filters

适用于网络搜索结果的筛选条件。

name

该工具或配置可选择用户自定义名称。

search_context_size

用于搜索的上下文窗口空间量的高级指南。 lowmediumhigh 之一。 medium 是默认值。

type

Web 搜索工具的类型。 web_searchweb_search_2025_08_26 中的一项。

user_location

用户的大致位置,用于搜索相关性。

属性详细信息

custom_search_configuration

附加到此工具的project连接。 最多可以有 1 个连接资源附加到该工具。

custom_search_configuration?: WebSearchConfiguration

属性值

description

可选的用户自定义描述,用于该工具或配置。

description?: string

属性值

string

filters

适用于网络搜索结果的筛选条件。

filters?: WebSearchToolFilters

属性值

name

该工具或配置可选择用户自定义名称。

name?: string

属性值

string

search_context_size

用于搜索的上下文窗口空间量的高级指南。 lowmediumhigh 之一。 medium 是默认值。

search_context_size?: "low" | "medium" | "high"

属性值

"low" | "medium" | "high"

type

Web 搜索工具的类型。 web_searchweb_search_2025_08_26 中的一项。

type: "web_search"

属性值

"web_search"

user_location

用户的大致位置,用于搜索相关性。

user_location?: WebSearchApproximateLocation

属性值