Package com.google.genai.types
Class ReinforcementTuningCodeExecutionRewardScorer
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningCodeExecutionRewardScorer
Scores parsed responses for code execution use cases.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReinforcementTuningCodeExecutionRewardScorer. -
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 ReinforcementTuningCodeExecutionRewardScorer.Deserializes a JSON string to a ReinforcementTuningCodeExecutionRewardScorer object.Example python code snippet which assigns reward of 1 to answer matching user provided reference answer in per prompt references map.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
-
ReinforcementTuningCodeExecutionRewardScorer
public ReinforcementTuningCodeExecutionRewardScorer()
-
-
Method Details
-
pythonCodeSnippet
Example python code snippet which assigns reward of 1 to answer matching user provided reference answer in per prompt references map. -
builder
Instantiates a builder for ReinforcementTuningCodeExecutionRewardScorer. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ReinforcementTuningCodeExecutionRewardScorer object.
-