Package com.google.genai.types
Class ToolExaAiSearch
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ToolExaAiSearch
ExaAiSearch tool type. A tool that uses the Exa.ai search engine for grounding. This data type is
not supported in Gemini API.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ToolExaAiSearch. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapiKey()Required.static ToolExaAiSearch.Builderbuilder()Instantiates a builder for ToolExaAiSearch.Optional.static ToolExaAiSearchDeserializes a JSON string to a ToolExaAiSearch object.abstract ToolExaAiSearch.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
-
ToolExaAiSearch
public ToolExaAiSearch()
-
-
Method Details
-
apiKey
Required. The API key for ExaAiSearch. -
customConfigs
Optional. This field can be used to pass any parameter from the Exa.ai Search API. -
builder
Instantiates a builder for ToolExaAiSearch. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ToolExaAiSearch object.
-