Class InferTrainedModelDeploymentRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.InferTrainedModelDeploymentRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class InferTrainedModelDeploymentRequest extends RequestBase implements JsonpSerializable
Evaluates a trained model.
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InferTrainedModelDeploymentRequest.Builder
Builder forInferTrainedModelDeploymentRequest
.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<InferTrainedModelDeploymentRequest>
_DESERIALIZER
Json deserializer forInferTrainedModelDeploymentRequest
static Endpoint<InferTrainedModelDeploymentRequest,InferTrainedModelDeploymentResponse,ErrorResponse>
_ENDPOINT
Endpoint "ml.infer_trained_model_deployment
". -
Method Summary
Modifier and Type Method Description java.util.List<java.util.Map<java.lang.String,java.lang.String>>
docs()
Required - An array of objects to pass to the model for inference.NlpInferenceConfigUpdate
inferenceConfig()
The inference configuration updates to apply on the API calljava.lang.String
modelId()
Required - The unique identifier of the trained model.static InferTrainedModelDeploymentRequest
of(java.util.function.Function<InferTrainedModelDeploymentRequest.Builder,ObjectBuilder<InferTrainedModelDeploymentRequest>> fn)
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
setupInferTrainedModelDeploymentRequestDeserializer(ObjectDeserializer<InferTrainedModelDeploymentRequest.Builder> op)
Time
timeout()
Controls the amount of time to wait for inference results.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forInferTrainedModelDeploymentRequest
-
_ENDPOINT
public static final Endpoint<InferTrainedModelDeploymentRequest,InferTrainedModelDeploymentResponse,ErrorResponse> _ENDPOINTEndpoint "ml.infer_trained_model_deployment
".
-
-
Method Details
-
of
public static InferTrainedModelDeploymentRequest of(java.util.function.Function<InferTrainedModelDeploymentRequest.Builder,ObjectBuilder<InferTrainedModelDeploymentRequest>> fn) -
docs
public final java.util.List<java.util.Map<java.lang.String,java.lang.String>> docs()Required - An array of objects to pass to the model for inference. The objects should contain a field matching your configured trained model input. Typically, the field name istext_field
. Currently, only a single value is allowed.API name:
docs
-
inferenceConfig
The inference configuration updates to apply on the API callAPI name:
inference_config
-
modelId
public final java.lang.String modelId()Required - The unique identifier of the trained model.API name:
model_id
-
timeout
Controls the amount of time to wait for inference results.API name:
timeout
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupInferTrainedModelDeploymentRequestDeserializer
protected static void setupInferTrainedModelDeploymentRequestDeserializer(ObjectDeserializer<InferTrainedModelDeploymentRequest.Builder> op)
-