RetrievalMetadata class final

Metadata related to retrieval in the grounding flow.

Inheritance
  • Object
  • ProtoMessage
  • RetrievalMetadata

Constructors

RetrievalMetadata({double googleSearchDynamicRetrievalScore = 0})
RetrievalMetadata.fromJson(Map<String, dynamic> json)
factory

Properties

googleSearchDynamicRetrievalScore double
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.
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
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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