Table of Contents

Class BleuMetricValue

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

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

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

Properties

Score

Output only. Bleu 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 BleuMetricValue object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

BleuMetricValue

The deserialized BleuMetricValue object, or null if deserialization fails.