Class CustomTaskSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.CustomTaskSettings
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CustomTaskSettings>Json deserializer forCustomTaskSettings -
Method Summary
Modifier and TypeMethodDescriptionstatic CustomTaskSettingsfinal JsonDataSpecifies parameters that are required to run the custom service.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
Json deserializer forCustomTaskSettings
-
-
Method Details
-
of
public static CustomTaskSettings of(Function<CustomTaskSettings.Builder, ObjectBuilder<CustomTaskSettings>> fn) -
parameters
Specifies parameters that are required to run the custom service. The parameters depend on the model your custom service uses. For example:"task_settings":{ "parameters":{ "input_type":"query", "return_token":true } }API name:
parameters -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCustomTaskSettingsDeserializer
protected static void setupCustomTaskSettingsDeserializer(ObjectDeserializer<CustomTaskSettings.Builder> op)
-