WebSearchTool class

Web search tool for searching the web.

Inheritance
Annotations
  • @immutable

Constructors

WebSearchTool({String type = 'web_search_preview', String? searchContextSize, ApproximateLocation? userLocation, List<SearchContentType>? searchContentTypes})
Creates a WebSearchTool.
const
WebSearchTool.fromJson(Map<String, dynamic> json)
Creates a WebSearchTool from JSON.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchContentTypes List<SearchContentType>?
The types of content to search for.
final
searchContextSize String?
The amount of context to include from web search results.
final
type String
The type of the tool.
final
userLocation ApproximateLocation?
The user's approximate location for localized search results.
final

Methods

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

Operators

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