Class Model


public abstract class Model extends JsonSerializable
A trained machine learning model.
  • Constructor Details

    • Model

      public Model()
  • Method Details

    • name

      public abstract Optional<String> name()
      Resource name of the model.
    • displayName

      public abstract Optional<String> displayName()
      Display name of the model.
    • description

      public abstract Optional<String> description()
      Description of the model.
    • version

      public abstract Optional<String> version()
      Version ID of the model. A new version is committed when a new model version is uploaded or trained under an existing model ID. The version ID is an auto-incrementing decimal number in string representation.
    • endpoints

      public abstract Optional<List<Endpoint>> endpoints()
      List of deployed models created from this base model. Note that a model could have been deployed to endpoints in different locations.
    • labels

      public abstract Optional<Map<String,String>> labels()
      Labels with user-defined metadata to organize your models.
    • tunedModelInfo

      public abstract Optional<TunedModelInfo> tunedModelInfo()
      Information about the tuned model from the base model.
    • inputTokenLimit

      public abstract Optional<Integer> inputTokenLimit()
      The maximum number of input tokens that the model can handle.
    • outputTokenLimit

      public abstract Optional<Integer> outputTokenLimit()
      The maximum number of output tokens that the model can generate.
    • supportedActions

      public abstract Optional<List<String>> supportedActions()
      List of actions that are supported by the model.
    • defaultCheckpointId

      public abstract Optional<String> defaultCheckpointId()
      The default checkpoint id of a model version.
    • checkpoints

      public abstract Optional<List<Checkpoint>> checkpoints()
      The checkpoints of the model.
    • builder

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

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

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