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 CustomTaskSettings
final JsonData
Specifies parameters that are required to run the custom service.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
-
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupCustomTaskSettingsDeserializer
protected static void setupCustomTaskSettingsDeserializer(ObjectDeserializer<CustomTaskSettings.Builder> op)
-