Package com.google.genai.types
Class GroundingChunk
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GroundingChunk
Grounding chunk.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingChunk.Builder
builder()
Instantiates a builder for GroundingChunk.static GroundingChunk
Deserializes a JSON string to a GroundingChunk object.abstract Optional<GroundingChunkRetrievedContext>
Grounding chunk from context retrieved by the retrieval tools.abstract GroundingChunk.Builder
Creates a builder with the same values as this instance.abstract Optional<GroundingChunkWeb>
web()
Grounding chunk from the web.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
GroundingChunk
public GroundingChunk()
-
-
Method Details
-
retrievedContext
Grounding chunk from context retrieved by the retrieval tools. -
web
Grounding chunk from the web. -
builder
Instantiates a builder for GroundingChunk. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GroundingChunk object.
-