Table of Contents

Class ReinforcementTuningRewardInfo

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

The reward info for a reward function.

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

Properties

Reward

Output only. The calculated reward for the reward function.

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

Property Value

double?

UserRequestedAuxInfo

Output only. The user-requested auxiliary info for the reward function.

[JsonPropertyName("userRequestedAuxInfo")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? UserRequestedAuxInfo { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ReinforcementTuningRewardInfo object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ReinforcementTuningRewardInfo

The deserialized ReinforcementTuningRewardInfo object, or null if deserialization fails.