Package com.google.genai.types
Class ReinforcementTuningStringMatchRewardScorerStringMatchExpression
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningStringMatchRewardScorerStringMatchExpression
public abstract class ReinforcementTuningStringMatchRewardScorerStringMatchExpression
extends JsonSerializable
Evaluates parsed response using match type against expression.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReinforcementTuningStringMatchRewardScorerStringMatchExpression. -
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 ReinforcementTuningStringMatchRewardScorerStringMatchExpression.String or regular expression to match against.Deserializes a JSON string to a ReinforcementTuningStringMatchRewardScorerStringMatchExpression object.abstract Optional<MatchOperation>Match operation to use for evaluation.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
-
ReinforcementTuningStringMatchRewardScorerStringMatchExpression
public ReinforcementTuningStringMatchRewardScorerStringMatchExpression()
-
-
Method Details
-
matchOperation
Match operation to use for evaluation. -
expression
String or regular expression to match against. Customer can also provide a references map (key/value pairs) whose value will be substituted into the expression by referencing `references.key_name` (wrapped in double curly braces). -
builder
Instantiates a builder for ReinforcementTuningStringMatchRewardScorerStringMatchExpression. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
public static ReinforcementTuningStringMatchRewardScorerStringMatchExpression fromJson(String jsonString) Deserializes a JSON string to a ReinforcementTuningStringMatchRewardScorerStringMatchExpression object.
-