Package com.google.genai.types
Class GoogleSearch
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GoogleSearch
Tool to support Google Search in Model. Powered by Google.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GoogleSearch.Builder
builder()
Instantiates a builder for GoogleSearch.Optional.static GoogleSearch
Deserializes a JSON string to a GoogleSearch object.Optional.abstract GoogleSearch.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GoogleSearch
public GoogleSearch()
-
-
Method Details
-
timeRangeFilter
Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa). -
excludeDomains
Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. -
builder
Instantiates a builder for GoogleSearch. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GoogleSearch object.
-