Package com.google.genai.types
Class ReinforcementTuningSpec
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningSpec
Reinforcement tuning spec for tuning.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReinforcementTuningSpec. -
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 ReinforcementTuningSpec.static ReinforcementTuningSpecDeserializes a JSON string to a ReinforcementTuningSpec object.abstract Optional<ReinforcementTuningHyperParameters>Additional hyper-parameters to use during tuning.Single reward function configuration for reinforcement tuning.abstract ReinforcementTuningSpec.BuilderCreates a builder with the same values as this instance.Cloud Storage path to file containing training dataset for tuning.Cloud Storage path to file containing validation dataset for tuning.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ReinforcementTuningSpec
public ReinforcementTuningSpec()
-
-
Method Details
-
compositeRewardConfig
-
trainingDatasetUri
Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. -
validationDatasetUri
Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. If no validation dataset is provided, by default the API splits 25% of the training dataset or 50 examples, whichever is larger, as the validation dataset. -
hyperParameters
Additional hyper-parameters to use during tuning. -
singleRewardConfig
Single reward function configuration for reinforcement tuning. -
builder
Instantiates a builder for ReinforcementTuningSpec. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ReinforcementTuningSpec object.
-