Class TunedModel

  • All Implemented Interfaces:

    
    public abstract class TunedModel
    extends JsonSerializable
                        

    TunedModel for the Tuned Model of a Tuning Job.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class TunedModel.Builder

      Builder for TunedModel.

    • Constructor Summary

      Constructors 
      Constructor Description
      TunedModel()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<String> model() Output only.
      abstract Optional<String> endpoint() Output only.
      abstract Optional<List<TunedModelCheckpoint>> checkpoints() The checkpoints associated with this TunedModel.
      static TunedModel.Builder builder() Instantiates a builder for TunedModel.
      abstract TunedModel.Builder toBuilder() Creates a builder with the same values as this instance.
      static TunedModel fromJson(String jsonString) Deserializes a JSON string to a TunedModel 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
    • Constructor Detail

      • TunedModel

        TunedModel()
    • Method Detail

      • model

         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

         abstract Optional<String> endpoint()

        Output only. A resource name of an Endpoint. Format: `projects/{project}/locations/{location}/endpoints/{endpoint}`.