Package com.google.genai.types
Class GroundingChunkRetrievedContext
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingChunkRetrievedContext
Chunk from context retrieved by the retrieval tools.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GroundingChunkRetrievedContext. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for GroundingChunkRetrievedContext.Output only.Deserializes a JSON string to a GroundingChunkRetrievedContext object.ragChunk()
Additional context for the RAG retrieval result.text()
Text of the attribution.title()
Title of the attribution.Creates a builder with the same values as this instance.uri()
URI reference of the attribution.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GroundingChunkRetrievedContext
public GroundingChunkRetrievedContext()
-
-
Method Details
-
documentName
Output only. The full document name for the referenced Vertex AI Search document. -
ragChunk
Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool. -
text
Text of the attribution. -
title
Title of the attribution. -
uri
URI reference of the attribution. -
builder
Instantiates a builder for GroundingChunkRetrievedContext. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GroundingChunkRetrievedContext object.
-