Class PutAi21Request
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.inference.PutAi21Request
- All Implemented Interfaces:
JsonpSerializable
Create a AI21 inference endpoint.
Create an inference endpoint to perform an inference task with the
ai21 service.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<PutAi21Request>Json deserializer forPutAi21Requeststatic final Endpoint<PutAi21Request,PutAi21Response, ErrorResponse> Endpoint "inference.put_ai21". -
Method Summary
Modifier and TypeMethodDescriptionfinal StringRequired - The unique identifier of the inference endpoint.static PutAi21Requestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final Ai21ServiceTypeservice()Required - The type of service supported for the specified task type.final Ai21ServiceSettingsRequired - Settings used to install the inference model.protected static voidfinal Ai21TaskTypetaskType()Required - The type of the inference task that the model will perform.final Timetimeout()Specifies the amount of time to wait for the inference endpoint to be created.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPutAi21Request -
_ENDPOINT
Endpoint "inference.put_ai21".
-
-
Method Details
-
of
-
ai21InferenceId
Required - The unique identifier of the inference endpoint.API name:
ai21_inference_id -
service
Required - The type of service supported for the specified task type. In this case,ai21.API name:
service -
serviceSettings
Required - Settings used to install the inference model. These settings are specific to theai21service.API name:
service_settings -
taskType
Required - The type of the inference task that the model will perform.API name:
task_type -
timeout
Specifies the amount of time to wait for the inference endpoint to be created.API name:
timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupPutAi21RequestDeserializer
protected static void setupPutAi21RequestDeserializer(ObjectDeserializer<PutAi21Request.Builder> op)
-