Class ElasticsearchInferenceAsyncClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchInferenceAsyncClient>
co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceAsyncClient
public class ElasticsearchInferenceAsyncClient
extends ApiClient<ElasticsearchTransport,ElasticsearchInferenceAsyncClient>
Client for the inference namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorDescriptionElasticsearchInferenceAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondeleteModel
(DeleteModelRequest request) Delete model in the Inference APIDelete model in the Inference APIgetModel
(GetModelRequest request) Get a model in the Inference APIGet a model in the Inference APIinference
(InferenceRequest request) Perform inference on a modelPerform inference on a modelputModel
(PutModelRequest request) Configure a model for use in the Inference APIConfigure a model for use in the Inference APIwithTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchInferenceAsyncClient
-
ElasticsearchInferenceAsyncClient
public ElasticsearchInferenceAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
public ElasticsearchInferenceAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions) Description copied from class:ApiClient
Creates a new client with some request options- Specified by:
withTransportOptions
in classApiClient<ElasticsearchTransport,
ElasticsearchInferenceAsyncClient>
-
deleteModel
Delete model in the Inference API- See Also:
-
deleteModel
public final CompletableFuture<DeleteModelResponse> deleteModel(Function<DeleteModelRequest.Builder, ObjectBuilder<DeleteModelRequest>> fn) Delete model in the Inference API- Parameters:
fn
- a function that initializes a builder to create theDeleteModelRequest
- See Also:
-
getModel
Get a model in the Inference API- See Also:
-
getModel
public final CompletableFuture<GetModelResponse> getModel(Function<GetModelRequest.Builder, ObjectBuilder<GetModelRequest>> fn) Get a model in the Inference API- Parameters:
fn
- a function that initializes a builder to create theGetModelRequest
- See Also:
-
inference
Perform inference on a model- See Also:
-
inference
public final CompletableFuture<InferenceResponse> inference(Function<InferenceRequest.Builder, ObjectBuilder<InferenceRequest>> fn) Perform inference on a model- Parameters:
fn
- a function that initializes a builder to create theInferenceRequest
- See Also:
-
putModel
Configure a model for use in the Inference API- See Also:
-
putModel
public final CompletableFuture<PutModelResponse> putModel(Function<PutModelRequest.Builder, ObjectBuilder<PutModelRequest>> fn) Configure a model for use in the Inference API- Parameters:
fn
- a function that initializes a builder to create thePutModelRequest
- See Also:
-