Package com.google.genai.types
Class ReinforcementTuningAutoraterScorerExactMatchScorer
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningAutoraterScorerExactMatchScorer
Scores autorater responses by using exact string match reward scorer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReinforcementTuningAutoraterScorerExactMatchScorer. -
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 ReinforcementTuningAutoraterScorerExactMatchScorer.Assigns this reward score if parsed response string equals the expression.The string expression to match against.Deserializes a JSON string to a ReinforcementTuningAutoraterScorerExactMatchScorer object.Creates a builder with the same values as this instance.Assigns this reward score if parsed reward value does not equal the expression.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ReinforcementTuningAutoraterScorerExactMatchScorer
public ReinforcementTuningAutoraterScorerExactMatchScorer()
-
-
Method Details
-
correctAnswerReward
Assigns this reward score if parsed response string equals the expression. -
wrongAnswerReward
Assigns this reward score if parsed reward value does not equal the expression. -
expression
The string expression to match against. Supports substitution in the format of `references.reference` (wrapped in double curly braces) before matching. No regex support. -
builder
Instantiates a builder for ReinforcementTuningAutoraterScorerExactMatchScorer. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ReinforcementTuningAutoraterScorerExactMatchScorer object.
-