Class RetrievalMetadata
Metadata returned to client when grounding is enabled.
public record RetrievalMetadata : IEquatable<RetrievalMetadata>
- Inheritance
-
RetrievalMetadata
- Implements
- Inherited Members
Properties
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.
[JsonPropertyName("googleSearchDynamicRetrievalScore")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? GoogleSearchDynamicRetrievalScore { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a RetrievalMetadata object.
public static RetrievalMetadata? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- RetrievalMetadata
The deserialized RetrievalMetadata object, or null if deserialization fails.