java.lang.Object
org.elasticsearch.inference.Model
- All Implemented Interfaces:
Writeable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionModel(StreamInput in) Model(ModelConfigurations configurations) Model(ModelConfigurations configurations, ModelSecrets secrets) Model(Model model, ServiceSettings serviceSettings) Model(Model model, TaskSettings taskSettings) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdocumentId(String modelId) booleanReturns the model's non-sensitive configurations (e.g.Returns the model's sensitive configurations (e.g.Returns the inner sensitive data defined by a particular service.inthashCode()voidwriteTo(StreamOutput out) Write this into the StreamOutput.
-
Constructor Details
-
Model
-
Model
-
Model
-
Model
-
Model
- Throws:
IOException
-
-
Method Details
-
documentId
-
getInferenceEntityId
-
getTaskType
-
getConfigurations
Returns the model's non-sensitive configurations (e.g. service name). -
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
-
getTaskSettings
-
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
-
hashCode
public int hashCode() -
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput.- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-