Package com.google.genai.types
Class ReinforcementTuningCodeExecutionRewardScorer.Builder
java.lang.Object
com.google.genai.types.ReinforcementTuningCodeExecutionRewardScorer.Builder
- Enclosing class:
- ReinforcementTuningCodeExecutionRewardScorer
Builder for ReinforcementTuningCodeExecutionRewardScorer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Clears the value of pythonCodeSnippet field.pythonCodeSnippet(String pythonCodeSnippet) Setter for pythonCodeSnippet.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
pythonCodeSnippet
public abstract ReinforcementTuningCodeExecutionRewardScorer.Builder pythonCodeSnippet(String pythonCodeSnippet) Setter for pythonCodeSnippet.pythonCodeSnippet: Example python code snippet which assigns reward of 1 to answer matching user provided reference answer in per prompt references map.
-
clearPythonCodeSnippet
@CanIgnoreReturnValue public ReinforcementTuningCodeExecutionRewardScorer.Builder clearPythonCodeSnippet()Clears the value of pythonCodeSnippet field. -
build
-