GroundingMetadata class final

Metadata returned to client when grounding is enabled.

Inheritance
  • Object
  • ProtoMessage
  • GroundingMetadata

Constructors

GroundingMetadata({List<String> webSearchQueries = const [], SearchEntryPoint? searchEntryPoint, List<String> retrievalQueries = const [], List<GroundingChunk> groundingChunks = const [], List<GroundingSupport> groundingSupports = const [], RetrievalMetadata? retrievalMetadata, String? googleMapsWidgetContextToken, List<GroundingMetadata_SourceFlaggingUri> sourceFlaggingUris = const []})
GroundingMetadata.fromJson(Object? j)
factory

Properties

googleMapsWidgetContextToken String?
Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding.
final
groundingChunks List<GroundingChunk>
List of supporting references retrieved from specified grounding source.
final
groundingSupports List<GroundingSupport>
Optional. List of grounding support.
final
hashCode int
The hash code for this object.
no setterinherited
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
retrievalMetadata RetrievalMetadata?
Optional. Output only. Retrieval metadata.
final
retrievalQueries List<String>
Optional. Queries executed by the retrieval tools.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searchEntryPoint SearchEntryPoint?
Optional. Google search entry for the following-up web searches.
final
sourceFlaggingUris List<GroundingMetadata_SourceFlaggingUri>
List of source flagging uris. This is currently populated only for Google Maps grounding.
final
webSearchQueries List<String>
Optional. Web search queries for the following-up web search.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String