Package com.google.genai.types
Class RetrievalMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.RetrievalMetadata
Metadata related to retrieval in the grounding flow.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for RetrievalMetadata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RetrievalMetadata.Builder
builder()
Instantiates a builder for RetrievalMetadata.static RetrievalMetadata
Deserializes a JSON string to a RetrievalMetadata object.Optional.abstract RetrievalMetadata.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
RetrievalMetadata
public RetrievalMetadata()
-
-
Method Details
-
googleSearchDynamicRetrievalScore
Optional. Score indicating how likely information from Google Search could help answer the prompt. The score is in the range `[0, 1]`, where 0 is the least likely and 1 is the most likely. This score is only populated when Google Search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger Google Search. -
builder
Instantiates a builder for RetrievalMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a RetrievalMetadata object.
-