Package com.google.genai.types
Class Retrieval
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Retrieval
Defines a retrieval tool that model can call to access external knowledge.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Retrieval.Builder
builder()
Instantiates a builder for Retrieval.Optional.static Retrieval
Deserializes a JSON string to a Retrieval object.abstract Retrieval.Builder
Creates a builder with the same values as this instance.abstract Optional<VertexAISearch>
Set to use data source powered by Vertex AI Search.abstract Optional<VertexRagStore>
Set to use data source powered by Vertex RAG store.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
Retrieval
public Retrieval()
-
-
Method Details
-
disableAttribution
Optional. Deprecated. This option is no longer supported. -
vertexAiSearch
Set to use data source powered by Vertex AI Search. -
vertexRagStore
Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService. -
builder
Instantiates a builder for Retrieval. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a Retrieval object.
-