Class InferTrainedModelRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.InferTrainedModelRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class InferTrainedModelRequest
extends RequestBase
implements JsonpSerializable
Evaluate a trained model.
- 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<InferTrainedModelRequest>Json deserializer forInferTrainedModelRequestEndpoint "ml.infer_trained_model". -
Method Summary
Modifier and TypeMethodDescriptiondocs()Required - An array of objects to pass to the model for inference.final InferenceConfigUpdateThe inference configuration updates to apply on the API callfinal StringmodelId()Required - The unique identifier of the trained model.static InferTrainedModelRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Timetimeout()Controls the amount of time to wait for inference results.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forInferTrainedModelRequest -
_ENDPOINT
public static final Endpoint<InferTrainedModelRequest,InferTrainedModelResponse, _ENDPOINTErrorResponse> Endpoint "ml.infer_trained_model".
-
-
Method Details
-
of
public static InferTrainedModelRequest of(Function<InferTrainedModelRequest.Builder, ObjectBuilder<InferTrainedModelRequest>> fn) -
docs
Required - An array of objects to pass to the model for inference. The objects should contain a fields matching your configured trained model input. Typically, for NLP models, the field name istext_field. Currently, for NLP models, only a single value is allowed.API name:
docs -
inferenceConfig
The inference configuration updates to apply on the API callAPI name:
inference_config -
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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupInferTrainedModelRequestDeserializer
protected static void setupInferTrainedModelRequestDeserializer(ObjectDeserializer<InferTrainedModelRequest.Builder> op)
-