Package com.google.genai.types
Class CompositeReinforcementTuningRewardConfigWeightedRewardConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CompositeReinforcementTuningRewardConfigWeightedRewardConfig
public abstract class CompositeReinforcementTuningRewardConfigWeightedRewardConfig
extends JsonSerializable
Composite reinforcement tuning reward config weighted reward config.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for CompositeReinforcementTuningRewardConfigWeightedRewardConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for CompositeReinforcementTuningRewardConfigWeightedRewardConfig.Deserializes a JSON string to a CompositeReinforcementTuningRewardConfigWeightedRewardConfig object.Single reward configuration.Creates a builder with the same values as this instance.weight()How much this single reward contributes to the total overall reward.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
CompositeReinforcementTuningRewardConfigWeightedRewardConfig
public CompositeReinforcementTuningRewardConfigWeightedRewardConfig()
-
-
Method Details
-
rewardConfig
Single reward configuration. -
weight
How much this single reward contributes to the total overall reward. Total reward is a linear combination of single rewards with their corresponding weights, i.e., ``` total_reward = ( weight_a * reward_a + weight_b * reward_b + ... ) / (weight_a + weight_b + ...) ``` -
builder
Instantiates a builder for CompositeReinforcementTuningRewardConfigWeightedRewardConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
public static CompositeReinforcementTuningRewardConfigWeightedRewardConfig fromJson(String jsonString) Deserializes a JSON string to a CompositeReinforcementTuningRewardConfigWeightedRewardConfig object.
-