Package com.google.genai.types
Class SingleReinforcementTuningRewardConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SingleReinforcementTuningRewardConfig
Single reinforcement tuning reward config.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for SingleReinforcementTuningRewardConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<ReinforcementTuningAutoraterScorer>Scores parsed responses for autorater use cases by using a model to compute the reward.builder()Instantiates a builder for SingleReinforcementTuningRewardConfig.Scores parsed responses by calling a Cloud Run service.Scores parsed responses for code execution use cases.Deserializes a JSON string to a SingleReinforcementTuningRewardConfig object.Defines how to parse sample response.A unique reward name used to identify each single reinforcement tuning reward.Scores parsed responses for simple string matching use cases against reference answer without writing python code.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
SingleReinforcementTuningRewardConfig
public SingleReinforcementTuningRewardConfig()
-
-
Method Details
-
autoraterScorer
Scores parsed responses for autorater use cases by using a model to compute the reward. -
rewardName
A unique reward name used to identify each single reinforcement tuning reward. -
parseResponseConfig
Defines how to parse sample response. -
codeExecutionRewardScorer
Scores parsed responses for code execution use cases. -
stringMatchRewardScorer
Scores parsed responses for simple string matching use cases against reference answer without writing python code. -
cloudRunRewardScorer
Scores parsed responses by calling a Cloud Run service. -
builder
Instantiates a builder for SingleReinforcementTuningRewardConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SingleReinforcementTuningRewardConfig object.
-