Package com.google.genai.types
Class ReinforcementTuningStringMatchRewardScorer.Builder
java.lang.Object
com.google.genai.types.ReinforcementTuningStringMatchRewardScorer.Builder
- Enclosing class:
- ReinforcementTuningStringMatchRewardScorer
Builder for ReinforcementTuningStringMatchRewardScorer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of correctAnswerReward field.Clears the value of jsonMatchExpression field.Clears the value of stringMatchExpression field.Clears the value of wrongAnswerReward field.correctAnswerReward(Float correctAnswerReward) Setter for correctAnswerReward.jsonMatchExpression(ReinforcementTuningStringMatchRewardScorerJsonMatchExpression jsonMatchExpression) Setter for jsonMatchExpression.jsonMatchExpression(ReinforcementTuningStringMatchRewardScorerJsonMatchExpression.Builder jsonMatchExpressionBuilder) Setter for jsonMatchExpression builder.stringMatchExpression(ReinforcementTuningStringMatchRewardScorerStringMatchExpression stringMatchExpression) Setter for stringMatchExpression.stringMatchExpression(ReinforcementTuningStringMatchRewardScorerStringMatchExpression.Builder stringMatchExpressionBuilder) Setter for stringMatchExpression builder.wrongAnswerReward(Float wrongAnswerReward) Setter for wrongAnswerReward.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
wrongAnswerReward
public abstract ReinforcementTuningStringMatchRewardScorer.Builder wrongAnswerReward(Float wrongAnswerReward) Setter for wrongAnswerReward.wrongAnswerReward: Wrong answer reward is returned if evaluator evaluates to `false`. All wrong answers get the same reward.
-
clearWrongAnswerReward
@CanIgnoreReturnValue public ReinforcementTuningStringMatchRewardScorer.Builder clearWrongAnswerReward()Clears the value of wrongAnswerReward field. -
correctAnswerReward
public abstract ReinforcementTuningStringMatchRewardScorer.Builder correctAnswerReward(Float correctAnswerReward) Setter for correctAnswerReward.correctAnswerReward: Correct answer reward is returned if evaluator evaluates to `true`. All correct answers get the same reward.
-
clearCorrectAnswerReward
@CanIgnoreReturnValue public ReinforcementTuningStringMatchRewardScorer.Builder clearCorrectAnswerReward()Clears the value of correctAnswerReward field. -
stringMatchExpression
public abstract ReinforcementTuningStringMatchRewardScorer.Builder stringMatchExpression(ReinforcementTuningStringMatchRewardScorerStringMatchExpression stringMatchExpression) Setter for stringMatchExpression.stringMatchExpression: Uses string match expression to evaluate parsed response.
-
stringMatchExpression
@CanIgnoreReturnValue public ReinforcementTuningStringMatchRewardScorer.Builder stringMatchExpression(ReinforcementTuningStringMatchRewardScorerStringMatchExpression.Builder stringMatchExpressionBuilder) Setter for stringMatchExpression builder.stringMatchExpression: Uses string match expression to evaluate parsed response.
-
clearStringMatchExpression
@CanIgnoreReturnValue public ReinforcementTuningStringMatchRewardScorer.Builder clearStringMatchExpression()Clears the value of stringMatchExpression field. -
jsonMatchExpression
public abstract ReinforcementTuningStringMatchRewardScorer.Builder jsonMatchExpression(ReinforcementTuningStringMatchRewardScorerJsonMatchExpression jsonMatchExpression) Setter for jsonMatchExpression.jsonMatchExpression: Uses json match expression to evaluate parsed response.
-
jsonMatchExpression
@CanIgnoreReturnValue public ReinforcementTuningStringMatchRewardScorer.Builder jsonMatchExpression(ReinforcementTuningStringMatchRewardScorerJsonMatchExpression.Builder jsonMatchExpressionBuilder) Setter for jsonMatchExpression builder.jsonMatchExpression: Uses json match expression to evaluate parsed response.
-
clearJsonMatchExpression
@CanIgnoreReturnValue public ReinforcementTuningStringMatchRewardScorer.Builder clearJsonMatchExpression()Clears the value of jsonMatchExpression field. -
build
-