| Name | Type | Description |
|---|---|---|
search_context_size | Optional[str] | Default: NoneHigh-level guidance for the amount of context
window space to use for the search. One of |
user_location | Optional[UserLocation] | Default: NoneApproximate location of the user. Use
:class: |
filters | Optional[WebSearchFilters] | Default: None |
| Name | Type |
|---|---|
| search_context_size | Optional[str] |
| user_location | Optional[UserLocation] |
| filters | Optional[WebSearchFilters] |
A tool that searches the internet for sources related to the prompt.
Wraps :class:openai.types.responses.WebSearchToolParam.
Example::
from langchain_azure_ai.tools.builtin import WebSearchTool
tool = WebSearchTool(search_context_size="high")
model_with_search = model.bind_tools([tool])
Search filters. Use
:class:~openai.types.responses.web_search_tool_param.Filters
or a plain :class:dict with an optional allowed_domains
list.