Package com.google.genai.types
Class CreateTuningJobParameters
-
- All Implemented Interfaces:
@InternalApi() public abstract class CreateTuningJobParameters extends JsonSerializable
Fine-tuning job creation parameters - optional fields.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classCreateTuningJobParameters.BuilderBuilder for CreateTuningJobParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description CreateTuningJobParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>baseModel()The base model that is being tuned, e.g., "gemini-2.5-flash". abstract Optional<TuningDataset>trainingDataset()Cloud Storage path to file containing training dataset for tuning. abstract Optional<CreateTuningJobConfig>config()Configuration for the tuning job. static CreateTuningJobParameters.Builderbuilder()Instantiates a builder for CreateTuningJobParameters. abstract CreateTuningJobParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static CreateTuningJobParametersfromJson(String jsonString)Deserializes a JSON string to a CreateTuningJobParameters object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
baseModel
abstract Optional<String> baseModel()
The base model that is being tuned, e.g., "gemini-2.5-flash".
-
trainingDataset
abstract Optional<TuningDataset> trainingDataset()
Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
-
config
abstract Optional<CreateTuningJobConfig> config()
Configuration for the tuning job.
-
builder
static CreateTuningJobParameters.Builder builder()
Instantiates a builder for CreateTuningJobParameters.
-
toBuilder
abstract CreateTuningJobParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static CreateTuningJobParameters fromJson(String jsonString)
Deserializes a JSON string to a CreateTuningJobParameters object.
-
-
-
-