Package com.google.genai.types
Class SearchTypes
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SearchTypes
Tool to support computer use.
-
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 SearchTypes.Builderbuilder()Instantiates a builder for SearchTypes.static SearchTypesDeserializes a JSON string to a SearchTypes object.abstract Optional<ImageSearch>Setting this field enables image search.abstract SearchTypes.BuilderCreates a builder with the same values as this instance.Setting this field enables web search.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
SearchTypes
public SearchTypes()
-
-
Method Details
-
webSearch
Setting this field enables web search. Only text results are returned. -
imageSearch
Setting this field enables image search. Image bytes are returned. -
builder
Instantiates a builder for SearchTypes. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SearchTypes object.
-