Class TunedModel

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.TunedModel

public abstract class TunedModel extends JsonSerializable
None
  • Constructor Details

    • TunedModel

      public TunedModel()
  • Method Details

    • model

      public abstract Optional<String> model()
      Output only. The resource name of the TunedModel. Format: `projects/{project}/locations/{location}/models/{model}@{version_id}` When tuning from a base model, the version_id will be 1. For continuous tuning, the version id will be incremented by 1 from the last version id in the parent model. E.g., `projects/{project}/locations/{location}/models/{model}@{last_version_id + 1}`
    • endpoint

      public abstract Optional<String> endpoint()
      Output only. A resource name of an Endpoint. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.
    • checkpoints

      public abstract Optional<List<TunedModelCheckpoint>> checkpoints()
      The checkpoints associated with this TunedModel. This field is only populated for tuning jobs that enable intermediate checkpoints.
    • builder

      public static TunedModel.Builder builder()
      Instantiates a builder for TunedModel.
    • toBuilder

      public abstract TunedModel.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static TunedModel fromJson(String jsonString)
      Deserializes a JSON string to a TunedModel object.