Function: webSearchTool()
webSearchTool(
options):ZodToolDefinition<SearchInput,WebSearchResponse>
Defined in: packages/tools/src/web/web-search.ts:188
The web_search tool. A provider failure throws WebSearchError, so the
bot's toolFailMode and tool hooks see a real failure (the default
returnToAI hands the model { error } and the loop goes on).
Parameters
options
Returns
ZodToolDefinition<SearchInput, WebSearchResponse>