Table of Contents

Class CompositeReinforcementTuningRewardConfigWeightedRewardConfig

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

Composite reinforcement tuning reward config weighted reward config.

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

Properties

RewardConfig

[JsonPropertyName("rewardConfig")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public SingleReinforcementTuningRewardConfig? RewardConfig { get; set; }

Property Value

SingleReinforcementTuningRewardConfig

Weight

How much this single reward contributes to the total overall reward.

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

Property Value

double?

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a CompositeReinforcementTuningRewardConfigWeightedRewardConfig object.

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

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

CompositeReinforcementTuningRewardConfigWeightedRewardConfig

The deserialized CompositeReinforcementTuningRewardConfigWeightedRewardConfig object, or null if deserialization fails.