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
JsonMatchExpression supports converting the parsed responses to JSON format, finding the value in
the JSON response that matches the key_name in the first level, and performing
StringMatchExpression operation on the matched JSON value. This data type is not supported in
Gemini API.
-
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()The key name to find the value in the parsed response that's in JSON format.Creates a builder with the same values as this instance.String match expression to match against the extracted value from the JSON representation of the parsed response.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ReinforcementTuningStringMatchRewardScorerJsonMatchExpression
public ReinforcementTuningStringMatchRewardScorerJsonMatchExpression()
-
-
Method Details
-
keyName
The key name to find the value in the parsed response that's in JSON format. Only first-level key matching is supported. -
valueStringMatchExpression
public abstract Optional<ReinforcementTuningStringMatchRewardScorerStringMatchExpression> valueStringMatchExpression()String match expression to match against the extracted value from the JSON representation of the parsed response. -
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.
-