webSearchTool method
Adds web search built-in tool
Enables the model to search the web for real-time information. Only available with Responses API.
Implementation
OpenAIBuilder webSearchTool() {
final tools = _getBuiltInTools();
tools.add(OpenAIBuiltInTools.webSearch());
_baseBuilder.extension('builtInTools', tools);
return this;
}