Class ModelConfig
java.lang.Object
co.elastic.clients.elasticsearch.inference.ModelConfig
- All Implemented Interfaces:
JsonpSerializable
- Direct Known Subclasses:
ModelConfigContainer
Configuration options when storing the model config
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ModelConfig>Json deserializer forModelConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelConfigvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final Stringservice()Required - The service typefinal JsonDataRequired - Settings specific to the serviceprotected static <BuilderT extends ModelConfig.AbstractBuilder<BuilderT>>
voidsetupModelConfigDeserializer(ObjectDeserializer<BuilderT> op) final JsonDataRequired - Task settings specific to the service and modeltoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forModelConfig
-
-
Constructor Details
-
ModelConfig
-
-
Method Details
-
modelConfigOf
public static ModelConfig modelConfigOf(Function<ModelConfig.Builder, ObjectBuilder<ModelConfig>> fn) -
service
Required - The service typeAPI name:
service -
serviceSettings
Required - Settings specific to the serviceAPI name:
service_settings -
taskSettings
Required - Task settings specific to the service and modelAPI name:
task_settings -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupModelConfigDeserializer
protected static <BuilderT extends ModelConfig.AbstractBuilder<BuilderT>> void setupModelConfigDeserializer(ObjectDeserializer<BuilderT> op)
-