Package com.google.genai.types
Class ExternalApiElasticSearchParams
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ExternalApiElasticSearchParams
The search parameters to use for the ELASTIC_SEARCH spec.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ExternalApiElasticSearchParams. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for ExternalApiElasticSearchParams.Deserializes a JSON string to a ExternalApiElasticSearchParams object.index()
The ElasticSearch index to use.numHits()
Optional.The ElasticSearch search template to use.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ExternalApiElasticSearchParams
public ExternalApiElasticSearchParams()
-
-
Method Details
-
index
The ElasticSearch index to use. -
numHits
Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param. -
searchTemplate
The ElasticSearch search template to use. -
builder
Instantiates a builder for ExternalApiElasticSearchParams. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ExternalApiElasticSearchParams object.
-