Table of Contents

Class ExactMatchMetricValue

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Exact match metric value for an instance. This data type is not supported in Gemini API.

public record ExactMatchMetricValue : IEquatable<ExactMatchMetricValue>
Inheritance
ExactMatchMetricValue
Implements
Inherited Members

Properties

Score

Output only. Exact match score.

[JsonPropertyName("score")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public double? Score { get; set; }

Property Value

double?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ExactMatchMetricValue object.

public static ExactMatchMetricValue? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ExactMatchMetricValue

The deserialized ExactMatchMetricValue object, or null if deserialization fails.