Package com.google.genai.types
Class ReinforcementTuningParseResponseConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningParseResponseConfig
Defines how to parse sample response for reinforcement tuning.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReinforcementTuningParseResponseConfig. -
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 ReinforcementTuningParseResponseConfig.Deserializes a JSON string to a ReinforcementTuningParseResponseConfig object.abstract Optional<ResponseParseType>Defines how to parse sample response.Defines the regex to extract the important part of sample response.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
-
ReinforcementTuningParseResponseConfig
public ReinforcementTuningParseResponseConfig()
-
-
Method Details
-
parseType
Defines how to parse sample response. -
regexExtractExpression
Defines the regex to extract the important part of sample response. This field is only used when `parse_type` is `REGEX_EXTRACT`. -
builder
Instantiates a builder for ReinforcementTuningParseResponseConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ReinforcementTuningParseResponseConfig object.
-