Class Model

java.lang.Object
com.ants.platform.client.resources.commons.types.Model

public final class Model extends Object
  • Method Details

    • getId

      public String getId()
    • getModelName

      public String getModelName()
      Returns:
      Name of the model definition. If multiple with the same name exist, they are applied in the following order: (1) custom over built-in, (2) newest according to startTime where model.startTime<observation.startTime
    • getMatchPattern

      public String getMatchPattern()
      Returns:
      Regex pattern which matches this model definition to generation.model. Useful in case of fine-tuned models. If you want to exact match, use (?i)^modelname$
    • getStartDate

      public Optional<OffsetDateTime> getStartDate()
      Returns:
      Apply only to generations which are newer than this ISO date.
    • getUnit

      public Optional<ModelUsageUnit> getUnit()
      Returns:
      Unit used by this model.
    • getInputPrice

      public Optional<Double> getInputPrice()
      Returns:
      Deprecated. See 'prices' instead. Price (USD) per input unit
    • getOutputPrice

      public Optional<Double> getOutputPrice()
      Returns:
      Deprecated. See 'prices' instead. Price (USD) per output unit
    • getTotalPrice

      public Optional<Double> getTotalPrice()
      Returns:
      Deprecated. See 'prices' instead. Price (USD) per total unit. Cannot be set if input or output price is set.
    • getTokenizerId

      public Optional<String> getTokenizerId()
      Returns:
      Optional. Tokenizer to be applied to observations which match to this model. See docs for more details.
    • getTokenizerConfig

      public Optional<Object> getTokenizerConfig()
      Returns:
      Optional. Configuration for the selected tokenizer. Needs to be JSON. See docs for more details.
    • getIsAntsPlatformManaged

      public boolean getIsAntsPlatformManaged()
    • getPrices

      public Map<String, ModelPrice> getPrices()
      Returns:
      Price (USD) by usage type
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static Model.IdStage builder()