Package com.google.genai.types
Class ReinforcementTuningStringMatchRewardScorerJsonMatchExpression
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningStringMatchRewardScorerJsonMatchExpression
public abstract class ReinforcementTuningStringMatchRewardScorerJsonMatchExpression
extends JsonSerializable
Converts parsed responses to JSON format, finds the first-level matching key, then performs
StringMatchExpression on the value.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReinforcementTuningStringMatchRewardScorerJsonMatchExpression. -
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 ReinforcementTuningStringMatchRewardScorerJsonMatchExpression.Deserializes a JSON string to a ReinforcementTuningStringMatchRewardScorerJsonMatchExpression object.keyName()Json key name to find the value to match against.Creates a builder with the same values as this instance.String match expression to match against the value of json key.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ReinforcementTuningStringMatchRewardScorerJsonMatchExpression
public ReinforcementTuningStringMatchRewardScorerJsonMatchExpression()
-
-
Method Details
-
keyName
Json key name to find the value to match against. -
valueStringMatchExpression
public abstract Optional<ReinforcementTuningStringMatchRewardScorerStringMatchExpression> valueStringMatchExpression()String match expression to match against the value of json key. -
builder
Instantiates a builder for ReinforcementTuningStringMatchRewardScorerJsonMatchExpression. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
public static ReinforcementTuningStringMatchRewardScorerJsonMatchExpression fromJson(String jsonString) Deserializes a JSON string to a ReinforcementTuningStringMatchRewardScorerJsonMatchExpression object.
-