Package com.google.genai.types
Class WebSearch
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.WebSearch
Standard web search for grounding and related configurations.
Only text results are returned.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic WebSearch.Builderbuilder()Instantiates a builder for WebSearch.static WebSearchDeserializes a JSON string to a WebSearch object.abstract WebSearch.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
WebSearch
public WebSearch()
-
-
Method Details
-
builder
Instantiates a builder for WebSearch. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a WebSearch object.
-