webSearchTool method

OpenAIBuilder webSearchTool()

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;
}