java.lang.Object
org.elasticsearch.inference.Model

public class Model extends Object
  • Constructor Details

  • Method Details

    • documentId

      public static String documentId(String modelId)
    • getInferenceEntityId

      public String getInferenceEntityId()
    • getTaskType

      public TaskType getTaskType()
    • getConfigurations

      public ModelConfigurations getConfigurations()
      Returns the model's non-sensitive configurations (e.g. service name).
    • getSecrets

      public ModelSecrets getSecrets()
      Returns the model's sensitive configurations (e.g. api key). This returns an object that in json would look like:
       
       {
           "secret_settings": { "api_key": "abc" }
       }
       
       
    • getServiceSettings

      public ServiceSettings getServiceSettings()
    • getTaskSettings

      public TaskSettings getTaskSettings()
    • getSecretSettings

      public SecretSettings getSecretSettings()
      Returns the inner sensitive data defined by a particular service. This returns an object that in json would look like:
       
       {
           "api_key": "abc"
       }
       
       
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object