OpenAIWebSearchTool class

Web search built-in tool

Enables the model to search the web for real-time information. Powered by the same model used for ChatGPT search.

Implemented types

Constructors

OpenAIWebSearchTool.new()
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type OpenAIBuiltInToolType
The type of built-in tool
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert tool to JSON format for API requests
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override