Class OpenSearchMlClient
java.lang.Object
org.opensearch.client.ApiClient<OpenSearchTransport,OpenSearchMlClient>
org.opensearch.client.opensearch.ml.OpenSearchMlClient
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class OpenSearchMlClient
extends ApiClient<OpenSearchTransport,OpenSearchMlClient>
Client for the ml namespace.
-
Field Summary
Fields inherited from class org.opensearch.client.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchMlClient(OpenSearchTransport transport) OpenSearchMlClient(OpenSearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptionfinal CreateConnectorResponseCreates a standalone connector.createConnector(CreateConnectorRequest request) Creates a standalone connector.final CreateControllerResponsecreateController(Function<CreateControllerRequest.Builder, ObjectBuilder<CreateControllerRequest>> fn) Creates a controller.createController(CreateControllerRequest request) Creates a controller.final CreateMemoryResponseCreate a memory.final CreateMemoryResponseCreate a memory.createMemory(CreateMemoryRequest request) Create a memory.final CreateMessageResponseCreate a message.createMessage(CreateMessageRequest request) Create a message.final CreateModelMetaResponseDeprecated.createModelMeta(CreateModelMetaRequest request) Deprecated.final DeleteAgentResponseDelete an agent.deleteAgent(DeleteAgentRequest request) Delete an agent.final DeleteConnectorResponseDeletes a standalone connector.deleteConnector(DeleteConnectorRequest request) Deletes a standalone connector.final DeleteControllerResponsedeleteController(Function<DeleteControllerRequest.Builder, ObjectBuilder<DeleteControllerRequest>> fn) Deletes a controller.deleteController(DeleteControllerRequest request) Deletes a controller.final DeleteMemoryResponseDelete a memory.deleteMemory(DeleteMemoryRequest request) Delete a memory.final DeleteModelResponseDeletes a model.deleteModel(DeleteModelRequest request) Deletes a model.final DeleteModelGroupResponsedeleteModelGroup(Function<DeleteModelGroupRequest.Builder, ObjectBuilder<DeleteModelGroupRequest>> fn) Deletes a model group.deleteModelGroup(DeleteModelGroupRequest request) Deletes a model group.final DeleteTaskResponseDeletes a task.deleteTask(DeleteTaskRequest request) Deletes a task.final DeployModelResponseDeploys a model.deployModel(DeployModelRequest request) Deploys a model.final ExecuteAgentResponseExecute an agent.executeAgent(ExecuteAgentRequest request) Execute an agent.executeAgentStream(Function<ExecuteAgentStreamRequest.Builder, ObjectBuilder<ExecuteAgentStreamRequest>> fn) Execute an agent in streaming mode.Execute an agent in streaming mode.final GetAgentResponseGet an agent.getAgent(GetAgentRequest request) Get an agent.final GetAllMemoriesResponseGet all memories.final GetAllMemoriesResponseGet all memories.getAllMemories(GetAllMemoriesRequest request) Get all memories.final GetAllMessagesResponseGet all messages in a memory.getAllMessages(GetAllMessagesRequest request) Get all messages in a memory.final GetAllToolsResponseGet tools.final GetAllToolsResponseGet tools.getAllTools(GetAllToolsRequest request) Get tools.final GetConnectorResponseRetrieves a standalone connector.getConnector(GetConnectorRequest request) Retrieves a standalone connector.final GetControllerResponseRetrieves a controller.getController(GetControllerRequest request) Retrieves a controller.final GetMemoryResponseGet a memory.getMemory(GetMemoryRequest request) Get a memory.final GetMessageResponseGet a message.getMessage(GetMessageRequest request) Get a message.final GetMessageTracesResponsegetMessageTraces(Function<GetMessageTracesRequest.Builder, ObjectBuilder<GetMessageTracesRequest>> fn) Get a message traces.getMessageTraces(GetMessageTracesRequest request) Get a message traces.final GetModelResponseRetrieves a model.getModel(GetModelRequest request) Retrieves a model.final GetModelGroupResponseRetrieves a model group.getModelGroup(GetModelGroupRequest request) Retrieves a model group.final GetProfileResponseGet a profile.final GetProfileResponseGet a profile.getProfile(GetProfileRequest request) Get a profile.final GetProfileModelsResponseGet a profile models.final GetProfileModelsResponsegetProfileModels(Function<GetProfileModelsRequest.Builder, ObjectBuilder<GetProfileModelsRequest>> fn) Get a profile models.getProfileModels(GetProfileModelsRequest request) Get a profile models.final GetProfileTasksResponseGet a profile tasks.final GetProfileTasksResponseGet a profile tasks.getProfileTasks(GetProfileTasksRequest request) Get a profile tasks.final GetStatsResponsegetStats()Get stats.final GetStatsResponseGet stats.getStats(GetStatsRequest request) Get stats.final GetTaskResponseRetrieves a task.getTask(GetTaskRequest request) Retrieves a task.final GetToolResponseGet tools.getTool(GetToolRequest request) Get tools.final LoadModelResponseDeprecated.loadModel(LoadModelRequest request) Deprecated.predictModelStream(Function<PredictModelStreamRequest.Builder, ObjectBuilder<PredictModelStreamRequest>> fn) Predicts a model in streaming mode.Predicts a model in streaming mode.final RegisterAgentsResponseRegister an agent.registerAgents(RegisterAgentsRequest request) Register an agent.final RegisterModelResponseRegisters a model.registerModel(RegisterModelRequest request) Registers a model.registerModelGroup(Function<RegisterModelGroupRequest.Builder, ObjectBuilder<RegisterModelGroupRequest>> fn) Registers a model group.Registers a model group.registerModelMeta(Function<RegisterModelMetaRequest.Builder, ObjectBuilder<RegisterModelMetaRequest>> fn) Registers model metadata.Registers model metadata.final UndeployModelResponseUndeploys a model.final UndeployModelResponseUndeploys a model.undeployModel(UndeployModelRequest request) Undeploys a model.final UnloadModelResponseDeprecated.final UnloadModelResponseDeprecated.unloadModel(UnloadModelRequest request) Deprecated.final UpdateConnectorResponseUpdates a standalone connector.updateConnector(UpdateConnectorRequest request) Updates a standalone connector.final UpdateControllerResponseupdateController(Function<UpdateControllerRequest.Builder, ObjectBuilder<UpdateControllerRequest>> fn) Updates a controller.updateController(UpdateControllerRequest request) Updates a controller.final UpdateMemoryResponseUpdate a memory.updateMemory(UpdateMemoryRequest request) Update a memory.final UpdateMessageResponseUpdate a message.updateMessage(UpdateMessageRequest request) Update a message.final UpdateModelResponseUpdates a model.updateModel(UpdateModelRequest request) Updates a model.final UpdateModelGroupResponseupdateModelGroup(Function<UpdateModelGroupRequest.Builder, ObjectBuilder<UpdateModelGroupRequest>> fn) Updates a model group.updateModelGroup(UpdateModelGroupRequest request) Updates a model group.final UploadChunkResponseUploads model chunk.uploadChunk(UploadChunkRequest request) Uploads model chunk.final UploadModelResponseDeprecated.uploadModel(UploadModelRequest request) Deprecated.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class org.opensearch.client.ApiClient
_transport, _transportOptions, getDeserializer
-
Constructor Details
-
OpenSearchMlClient
-
OpenSearchMlClient
public OpenSearchMlClient(OpenSearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<OpenSearchTransport,OpenSearchMlClient>
-
createConnector
public CreateConnectorResponse createConnector(CreateConnectorRequest request) throws IOException, OpenSearchException Creates a standalone connector.- Throws:
IOExceptionOpenSearchException
-
createConnector
public final CreateConnectorResponse createConnector(Function<CreateConnectorRequest.Builder, ObjectBuilder<CreateConnectorRequest>> fn) throws IOException, OpenSearchExceptionCreates a standalone connector.- Parameters:
fn- a function that initializes a builder to create theCreateConnectorRequest- Throws:
IOExceptionOpenSearchException
-
createController
public CreateControllerResponse createController(CreateControllerRequest request) throws IOException, OpenSearchException Creates a controller.- Throws:
IOExceptionOpenSearchException
-
createController
public final CreateControllerResponse createController(Function<CreateControllerRequest.Builder, ObjectBuilder<CreateControllerRequest>> fn) throws IOException, OpenSearchExceptionCreates a controller.- Parameters:
fn- a function that initializes a builder to create theCreateControllerRequest- Throws:
IOExceptionOpenSearchException
-
createMemory
public CreateMemoryResponse createMemory(CreateMemoryRequest request) throws IOException, OpenSearchException Create a memory.- Throws:
IOExceptionOpenSearchException
-
createMemory
public final CreateMemoryResponse createMemory(Function<CreateMemoryRequest.Builder, ObjectBuilder<CreateMemoryRequest>> fn) throws IOException, OpenSearchExceptionCreate a memory.- Parameters:
fn- a function that initializes a builder to create theCreateMemoryRequest- Throws:
IOExceptionOpenSearchException
-
createMemory
Create a memory.- Throws:
IOExceptionOpenSearchException
-
createMessage
public CreateMessageResponse createMessage(CreateMessageRequest request) throws IOException, OpenSearchException Create a message.- Throws:
IOExceptionOpenSearchException
-
createMessage
public final CreateMessageResponse createMessage(Function<CreateMessageRequest.Builder, ObjectBuilder<CreateMessageRequest>> fn) throws IOException, OpenSearchExceptionCreate a message.- Parameters:
fn- a function that initializes a builder to create theCreateMessageRequest- Throws:
IOExceptionOpenSearchException
-
createModelMeta
@Deprecated public CreateModelMetaResponse createModelMeta(CreateModelMetaRequest request) throws IOException, OpenSearchException Deprecated.Registers model metadata.- Throws:
IOExceptionOpenSearchException
-
createModelMeta
@Deprecated public final CreateModelMetaResponse createModelMeta(Function<CreateModelMetaRequest.Builder, ObjectBuilder<CreateModelMetaRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Registers model metadata.- Parameters:
fn- a function that initializes a builder to create theCreateModelMetaRequest- Throws:
IOExceptionOpenSearchException
-
deleteAgent
public DeleteAgentResponse deleteAgent(DeleteAgentRequest request) throws IOException, OpenSearchException Delete an agent.- Throws:
IOExceptionOpenSearchException
-
deleteAgent
public final DeleteAgentResponse deleteAgent(Function<DeleteAgentRequest.Builder, ObjectBuilder<DeleteAgentRequest>> fn) throws IOException, OpenSearchExceptionDelete an agent.- Parameters:
fn- a function that initializes a builder to create theDeleteAgentRequest- Throws:
IOExceptionOpenSearchException
-
deleteConnector
public DeleteConnectorResponse deleteConnector(DeleteConnectorRequest request) throws IOException, OpenSearchException Deletes a standalone connector.- Throws:
IOExceptionOpenSearchException
-
deleteConnector
public final DeleteConnectorResponse deleteConnector(Function<DeleteConnectorRequest.Builder, ObjectBuilder<DeleteConnectorRequest>> fn) throws IOException, OpenSearchExceptionDeletes a standalone connector.- Parameters:
fn- a function that initializes a builder to create theDeleteConnectorRequest- Throws:
IOExceptionOpenSearchException
-
deleteController
public DeleteControllerResponse deleteController(DeleteControllerRequest request) throws IOException, OpenSearchException Deletes a controller.- Throws:
IOExceptionOpenSearchException
-
deleteController
public final DeleteControllerResponse deleteController(Function<DeleteControllerRequest.Builder, ObjectBuilder<DeleteControllerRequest>> fn) throws IOException, OpenSearchExceptionDeletes a controller.- Parameters:
fn- a function that initializes a builder to create theDeleteControllerRequest- Throws:
IOExceptionOpenSearchException
-
deleteMemory
public DeleteMemoryResponse deleteMemory(DeleteMemoryRequest request) throws IOException, OpenSearchException Delete a memory.- Throws:
IOExceptionOpenSearchException
-
deleteMemory
public final DeleteMemoryResponse deleteMemory(Function<DeleteMemoryRequest.Builder, ObjectBuilder<DeleteMemoryRequest>> fn) throws IOException, OpenSearchExceptionDelete a memory.- Parameters:
fn- a function that initializes a builder to create theDeleteMemoryRequest- Throws:
IOExceptionOpenSearchException
-
deleteModel
public DeleteModelResponse deleteModel(DeleteModelRequest request) throws IOException, OpenSearchException Deletes a model.- Throws:
IOExceptionOpenSearchException
-
deleteModel
public final DeleteModelResponse deleteModel(Function<DeleteModelRequest.Builder, ObjectBuilder<DeleteModelRequest>> fn) throws IOException, OpenSearchExceptionDeletes a model.- Parameters:
fn- a function that initializes a builder to create theDeleteModelRequest- Throws:
IOExceptionOpenSearchException
-
deleteModelGroup
public DeleteModelGroupResponse deleteModelGroup(DeleteModelGroupRequest request) throws IOException, OpenSearchException Deletes a model group.- Throws:
IOExceptionOpenSearchException
-
deleteModelGroup
public final DeleteModelGroupResponse deleteModelGroup(Function<DeleteModelGroupRequest.Builder, ObjectBuilder<DeleteModelGroupRequest>> fn) throws IOException, OpenSearchExceptionDeletes a model group.- Parameters:
fn- a function that initializes a builder to create theDeleteModelGroupRequest- Throws:
IOExceptionOpenSearchException
-
deleteTask
public DeleteTaskResponse deleteTask(DeleteTaskRequest request) throws IOException, OpenSearchException Deletes a task.- Throws:
IOExceptionOpenSearchException
-
deleteTask
public final DeleteTaskResponse deleteTask(Function<DeleteTaskRequest.Builder, ObjectBuilder<DeleteTaskRequest>> fn) throws IOException, OpenSearchExceptionDeletes a task.- Parameters:
fn- a function that initializes a builder to create theDeleteTaskRequest- Throws:
IOExceptionOpenSearchException
-
deployModel
public DeployModelResponse deployModel(DeployModelRequest request) throws IOException, OpenSearchException Deploys a model.- Throws:
IOExceptionOpenSearchException
-
deployModel
public final DeployModelResponse deployModel(Function<DeployModelRequest.Builder, ObjectBuilder<DeployModelRequest>> fn) throws IOException, OpenSearchExceptionDeploys a model.- Parameters:
fn- a function that initializes a builder to create theDeployModelRequest- Throws:
IOExceptionOpenSearchException
-
executeAgent
public ExecuteAgentResponse executeAgent(ExecuteAgentRequest request) throws IOException, OpenSearchException Execute an agent.- Throws:
IOExceptionOpenSearchException
-
executeAgent
public final ExecuteAgentResponse executeAgent(Function<ExecuteAgentRequest.Builder, ObjectBuilder<ExecuteAgentRequest>> fn) throws IOException, OpenSearchExceptionExecute an agent.- Parameters:
fn- a function that initializes a builder to create theExecuteAgentRequest- Throws:
IOExceptionOpenSearchException
-
executeAgentStream
public ExecuteAgentStreamResponse executeAgentStream(ExecuteAgentStreamRequest request) throws IOException, OpenSearchException Execute an agent in streaming mode.- Throws:
IOExceptionOpenSearchException
-
executeAgentStream
public final ExecuteAgentStreamResponse executeAgentStream(Function<ExecuteAgentStreamRequest.Builder, ObjectBuilder<ExecuteAgentStreamRequest>> fn) throws IOException, OpenSearchExceptionExecute an agent in streaming mode.- Parameters:
fn- a function that initializes a builder to create theExecuteAgentStreamRequest- Throws:
IOExceptionOpenSearchException
-
getAgent
Get an agent.- Throws:
IOExceptionOpenSearchException
-
getAgent
public final GetAgentResponse getAgent(Function<GetAgentRequest.Builder, ObjectBuilder<GetAgentRequest>> fn) throws IOException, OpenSearchExceptionGet an agent.- Parameters:
fn- a function that initializes a builder to create theGetAgentRequest- Throws:
IOExceptionOpenSearchException
-
getAllMemories
public GetAllMemoriesResponse getAllMemories(GetAllMemoriesRequest request) throws IOException, OpenSearchException Get all memories.- Throws:
IOExceptionOpenSearchException
-
getAllMemories
public final GetAllMemoriesResponse getAllMemories(Function<GetAllMemoriesRequest.Builder, ObjectBuilder<GetAllMemoriesRequest>> fn) throws IOException, OpenSearchExceptionGet all memories.- Parameters:
fn- a function that initializes a builder to create theGetAllMemoriesRequest- Throws:
IOExceptionOpenSearchException
-
getAllMemories
Get all memories.- Throws:
IOExceptionOpenSearchException
-
getAllMessages
public GetAllMessagesResponse getAllMessages(GetAllMessagesRequest request) throws IOException, OpenSearchException Get all messages in a memory.- Throws:
IOExceptionOpenSearchException
-
getAllMessages
public final GetAllMessagesResponse getAllMessages(Function<GetAllMessagesRequest.Builder, ObjectBuilder<GetAllMessagesRequest>> fn) throws IOException, OpenSearchExceptionGet all messages in a memory.- Parameters:
fn- a function that initializes a builder to create theGetAllMessagesRequest- Throws:
IOExceptionOpenSearchException
-
getAllTools
public GetAllToolsResponse getAllTools(GetAllToolsRequest request) throws IOException, OpenSearchException Get tools.- Throws:
IOExceptionOpenSearchException
-
getAllTools
public final GetAllToolsResponse getAllTools(Function<GetAllToolsRequest.Builder, ObjectBuilder<GetAllToolsRequest>> fn) throws IOException, OpenSearchExceptionGet tools.- Parameters:
fn- a function that initializes a builder to create theGetAllToolsRequest- Throws:
IOExceptionOpenSearchException
-
getAllTools
Get tools.- Throws:
IOExceptionOpenSearchException
-
getConnector
public GetConnectorResponse getConnector(GetConnectorRequest request) throws IOException, OpenSearchException Retrieves a standalone connector.- Throws:
IOExceptionOpenSearchException
-
getConnector
public final GetConnectorResponse getConnector(Function<GetConnectorRequest.Builder, ObjectBuilder<GetConnectorRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a standalone connector.- Parameters:
fn- a function that initializes a builder to create theGetConnectorRequest- Throws:
IOExceptionOpenSearchException
-
getController
public GetControllerResponse getController(GetControllerRequest request) throws IOException, OpenSearchException Retrieves a controller.- Throws:
IOExceptionOpenSearchException
-
getController
public final GetControllerResponse getController(Function<GetControllerRequest.Builder, ObjectBuilder<GetControllerRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a controller.- Parameters:
fn- a function that initializes a builder to create theGetControllerRequest- Throws:
IOExceptionOpenSearchException
-
getMemory
public GetMemoryResponse getMemory(GetMemoryRequest request) throws IOException, OpenSearchException Get a memory.- Throws:
IOExceptionOpenSearchException
-
getMemory
public final GetMemoryResponse getMemory(Function<GetMemoryRequest.Builder, ObjectBuilder<GetMemoryRequest>> fn) throws IOException, OpenSearchExceptionGet a memory.- Parameters:
fn- a function that initializes a builder to create theGetMemoryRequest- Throws:
IOExceptionOpenSearchException
-
getMessage
public GetMessageResponse getMessage(GetMessageRequest request) throws IOException, OpenSearchException Get a message.- Throws:
IOExceptionOpenSearchException
-
getMessage
public final GetMessageResponse getMessage(Function<GetMessageRequest.Builder, ObjectBuilder<GetMessageRequest>> fn) throws IOException, OpenSearchExceptionGet a message.- Parameters:
fn- a function that initializes a builder to create theGetMessageRequest- Throws:
IOExceptionOpenSearchException
-
getMessageTraces
public GetMessageTracesResponse getMessageTraces(GetMessageTracesRequest request) throws IOException, OpenSearchException Get a message traces.- Throws:
IOExceptionOpenSearchException
-
getMessageTraces
public final GetMessageTracesResponse getMessageTraces(Function<GetMessageTracesRequest.Builder, ObjectBuilder<GetMessageTracesRequest>> fn) throws IOException, OpenSearchExceptionGet a message traces.- Parameters:
fn- a function that initializes a builder to create theGetMessageTracesRequest- Throws:
IOExceptionOpenSearchException
-
getModel
Retrieves a model.- Throws:
IOExceptionOpenSearchException
-
getModel
public final GetModelResponse getModel(Function<GetModelRequest.Builder, ObjectBuilder<GetModelRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a model.- Parameters:
fn- a function that initializes a builder to create theGetModelRequest- Throws:
IOExceptionOpenSearchException
-
getModelGroup
public GetModelGroupResponse getModelGroup(GetModelGroupRequest request) throws IOException, OpenSearchException Retrieves a model group.- Throws:
IOExceptionOpenSearchException
-
getModelGroup
public final GetModelGroupResponse getModelGroup(Function<GetModelGroupRequest.Builder, ObjectBuilder<GetModelGroupRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a model group.- Parameters:
fn- a function that initializes a builder to create theGetModelGroupRequest- Throws:
IOExceptionOpenSearchException
-
getProfile
public GetProfileResponse getProfile(GetProfileRequest request) throws IOException, OpenSearchException Get a profile.- Throws:
IOExceptionOpenSearchException
-
getProfile
public final GetProfileResponse getProfile(Function<GetProfileRequest.Builder, ObjectBuilder<GetProfileRequest>> fn) throws IOException, OpenSearchExceptionGet a profile.- Parameters:
fn- a function that initializes a builder to create theGetProfileRequest- Throws:
IOExceptionOpenSearchException
-
getProfile
Get a profile.- Throws:
IOExceptionOpenSearchException
-
getProfileModels
public GetProfileModelsResponse getProfileModels(GetProfileModelsRequest request) throws IOException, OpenSearchException Get a profile models.- Throws:
IOExceptionOpenSearchException
-
getProfileModels
public final GetProfileModelsResponse getProfileModels(Function<GetProfileModelsRequest.Builder, ObjectBuilder<GetProfileModelsRequest>> fn) throws IOException, OpenSearchExceptionGet a profile models.- Parameters:
fn- a function that initializes a builder to create theGetProfileModelsRequest- Throws:
IOExceptionOpenSearchException
-
getProfileModels
Get a profile models.- Throws:
IOExceptionOpenSearchException
-
getProfileTasks
public GetProfileTasksResponse getProfileTasks(GetProfileTasksRequest request) throws IOException, OpenSearchException Get a profile tasks.- Throws:
IOExceptionOpenSearchException
-
getProfileTasks
public final GetProfileTasksResponse getProfileTasks(Function<GetProfileTasksRequest.Builder, ObjectBuilder<GetProfileTasksRequest>> fn) throws IOException, OpenSearchExceptionGet a profile tasks.- Parameters:
fn- a function that initializes a builder to create theGetProfileTasksRequest- Throws:
IOExceptionOpenSearchException
-
getProfileTasks
Get a profile tasks.- Throws:
IOExceptionOpenSearchException
-
getStats
Get stats.- Throws:
IOExceptionOpenSearchException
-
getStats
public final GetStatsResponse getStats(Function<GetStatsRequest.Builder, ObjectBuilder<GetStatsRequest>> fn) throws IOException, OpenSearchExceptionGet stats.- Parameters:
fn- a function that initializes a builder to create theGetStatsRequest- Throws:
IOExceptionOpenSearchException
-
getStats
Get stats.- Throws:
IOExceptionOpenSearchException
-
getTask
Retrieves a task.- Throws:
IOExceptionOpenSearchException
-
getTask
public final GetTaskResponse getTask(Function<GetTaskRequest.Builder, ObjectBuilder<GetTaskRequest>> fn) throws IOException, OpenSearchExceptionRetrieves a task.- Parameters:
fn- a function that initializes a builder to create theGetTaskRequest- Throws:
IOExceptionOpenSearchException
-
getTool
Get tools.- Throws:
IOExceptionOpenSearchException
-
getTool
public final GetToolResponse getTool(Function<GetToolRequest.Builder, ObjectBuilder<GetToolRequest>> fn) throws IOException, OpenSearchExceptionGet tools.- Parameters:
fn- a function that initializes a builder to create theGetToolRequest- Throws:
IOExceptionOpenSearchException
-
loadModel
@Deprecated public LoadModelResponse loadModel(LoadModelRequest request) throws IOException, OpenSearchException Deprecated.Deploys a model.- Throws:
IOExceptionOpenSearchException
-
loadModel
@Deprecated public final LoadModelResponse loadModel(Function<LoadModelRequest.Builder, ObjectBuilder<LoadModelRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Deploys a model.- Parameters:
fn- a function that initializes a builder to create theLoadModelRequest- Throws:
IOExceptionOpenSearchException
-
predictModelStream
public PredictModelStreamResponse predictModelStream(PredictModelStreamRequest request) throws IOException, OpenSearchException Predicts a model in streaming mode.- Throws:
IOExceptionOpenSearchException
-
predictModelStream
public final PredictModelStreamResponse predictModelStream(Function<PredictModelStreamRequest.Builder, ObjectBuilder<PredictModelStreamRequest>> fn) throws IOException, OpenSearchExceptionPredicts a model in streaming mode.- Parameters:
fn- a function that initializes a builder to create thePredictModelStreamRequest- Throws:
IOExceptionOpenSearchException
-
registerAgents
public RegisterAgentsResponse registerAgents(RegisterAgentsRequest request) throws IOException, OpenSearchException Register an agent.- Throws:
IOExceptionOpenSearchException
-
registerAgents
public final RegisterAgentsResponse registerAgents(Function<RegisterAgentsRequest.Builder, ObjectBuilder<RegisterAgentsRequest>> fn) throws IOException, OpenSearchExceptionRegister an agent.- Parameters:
fn- a function that initializes a builder to create theRegisterAgentsRequest- Throws:
IOExceptionOpenSearchException
-
registerModel
public RegisterModelResponse registerModel(RegisterModelRequest request) throws IOException, OpenSearchException Registers a model.- Throws:
IOExceptionOpenSearchException
-
registerModel
public final RegisterModelResponse registerModel(Function<RegisterModelRequest.Builder, ObjectBuilder<RegisterModelRequest>> fn) throws IOException, OpenSearchExceptionRegisters a model.- Parameters:
fn- a function that initializes a builder to create theRegisterModelRequest- Throws:
IOExceptionOpenSearchException
-
registerModelGroup
public RegisterModelGroupResponse registerModelGroup(RegisterModelGroupRequest request) throws IOException, OpenSearchException Registers a model group.- Throws:
IOExceptionOpenSearchException
-
registerModelGroup
public final RegisterModelGroupResponse registerModelGroup(Function<RegisterModelGroupRequest.Builder, ObjectBuilder<RegisterModelGroupRequest>> fn) throws IOException, OpenSearchExceptionRegisters a model group.- Parameters:
fn- a function that initializes a builder to create theRegisterModelGroupRequest- Throws:
IOExceptionOpenSearchException
-
registerModelMeta
public RegisterModelMetaResponse registerModelMeta(RegisterModelMetaRequest request) throws IOException, OpenSearchException Registers model metadata.- Throws:
IOExceptionOpenSearchException
-
registerModelMeta
public final RegisterModelMetaResponse registerModelMeta(Function<RegisterModelMetaRequest.Builder, ObjectBuilder<RegisterModelMetaRequest>> fn) throws IOException, OpenSearchExceptionRegisters model metadata.- Parameters:
fn- a function that initializes a builder to create theRegisterModelMetaRequest- Throws:
IOExceptionOpenSearchException
-
undeployModel
public UndeployModelResponse undeployModel(UndeployModelRequest request) throws IOException, OpenSearchException Undeploys a model.- Throws:
IOExceptionOpenSearchException
-
undeployModel
public final UndeployModelResponse undeployModel(Function<UndeployModelRequest.Builder, ObjectBuilder<UndeployModelRequest>> fn) throws IOException, OpenSearchExceptionUndeploys a model.- Parameters:
fn- a function that initializes a builder to create theUndeployModelRequest- Throws:
IOExceptionOpenSearchException
-
undeployModel
Undeploys a model.- Throws:
IOExceptionOpenSearchException
-
unloadModel
@Deprecated public UnloadModelResponse unloadModel(UnloadModelRequest request) throws IOException, OpenSearchException Deprecated.Unloads a model.- Throws:
IOExceptionOpenSearchException
-
unloadModel
@Deprecated public final UnloadModelResponse unloadModel(Function<UnloadModelRequest.Builder, ObjectBuilder<UnloadModelRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Unloads a model.- Parameters:
fn- a function that initializes a builder to create theUnloadModelRequest- Throws:
IOExceptionOpenSearchException
-
unloadModel
Deprecated.Unloads a model.- Throws:
IOExceptionOpenSearchException
-
updateConnector
public UpdateConnectorResponse updateConnector(UpdateConnectorRequest request) throws IOException, OpenSearchException Updates a standalone connector.- Throws:
IOExceptionOpenSearchException
-
updateConnector
public final UpdateConnectorResponse updateConnector(Function<UpdateConnectorRequest.Builder, ObjectBuilder<UpdateConnectorRequest>> fn) throws IOException, OpenSearchExceptionUpdates a standalone connector.- Parameters:
fn- a function that initializes a builder to create theUpdateConnectorRequest- Throws:
IOExceptionOpenSearchException
-
updateController
public UpdateControllerResponse updateController(UpdateControllerRequest request) throws IOException, OpenSearchException Updates a controller.- Throws:
IOExceptionOpenSearchException
-
updateController
public final UpdateControllerResponse updateController(Function<UpdateControllerRequest.Builder, ObjectBuilder<UpdateControllerRequest>> fn) throws IOException, OpenSearchExceptionUpdates a controller.- Parameters:
fn- a function that initializes a builder to create theUpdateControllerRequest- Throws:
IOExceptionOpenSearchException
-
updateMemory
public UpdateMemoryResponse updateMemory(UpdateMemoryRequest request) throws IOException, OpenSearchException Update a memory.- Throws:
IOExceptionOpenSearchException
-
updateMemory
public final UpdateMemoryResponse updateMemory(Function<UpdateMemoryRequest.Builder, ObjectBuilder<UpdateMemoryRequest>> fn) throws IOException, OpenSearchExceptionUpdate a memory.- Parameters:
fn- a function that initializes a builder to create theUpdateMemoryRequest- Throws:
IOExceptionOpenSearchException
-
updateMessage
public UpdateMessageResponse updateMessage(UpdateMessageRequest request) throws IOException, OpenSearchException Update a message.- Throws:
IOExceptionOpenSearchException
-
updateMessage
public final UpdateMessageResponse updateMessage(Function<UpdateMessageRequest.Builder, ObjectBuilder<UpdateMessageRequest>> fn) throws IOException, OpenSearchExceptionUpdate a message.- Parameters:
fn- a function that initializes a builder to create theUpdateMessageRequest- Throws:
IOExceptionOpenSearchException
-
updateModel
public UpdateModelResponse updateModel(UpdateModelRequest request) throws IOException, OpenSearchException Updates a model.- Throws:
IOExceptionOpenSearchException
-
updateModel
public final UpdateModelResponse updateModel(Function<UpdateModelRequest.Builder, ObjectBuilder<UpdateModelRequest>> fn) throws IOException, OpenSearchExceptionUpdates a model.- Parameters:
fn- a function that initializes a builder to create theUpdateModelRequest- Throws:
IOExceptionOpenSearchException
-
updateModelGroup
public UpdateModelGroupResponse updateModelGroup(UpdateModelGroupRequest request) throws IOException, OpenSearchException Updates a model group.- Throws:
IOExceptionOpenSearchException
-
updateModelGroup
public final UpdateModelGroupResponse updateModelGroup(Function<UpdateModelGroupRequest.Builder, ObjectBuilder<UpdateModelGroupRequest>> fn) throws IOException, OpenSearchExceptionUpdates a model group.- Parameters:
fn- a function that initializes a builder to create theUpdateModelGroupRequest- Throws:
IOExceptionOpenSearchException
-
uploadChunk
public UploadChunkResponse uploadChunk(UploadChunkRequest request) throws IOException, OpenSearchException Uploads model chunk.- Throws:
IOExceptionOpenSearchException
-
uploadChunk
public final UploadChunkResponse uploadChunk(Function<UploadChunkRequest.Builder, ObjectBuilder<UploadChunkRequest>> fn) throws IOException, OpenSearchExceptionUploads model chunk.- Parameters:
fn- a function that initializes a builder to create theUploadChunkRequest- Throws:
IOExceptionOpenSearchException
-
uploadModel
@Deprecated public UploadModelResponse uploadModel(UploadModelRequest request) throws IOException, OpenSearchException Deprecated.Registers a model.- Throws:
IOExceptionOpenSearchException
-
uploadModel
@Deprecated public final UploadModelResponse uploadModel(Function<UploadModelRequest.Builder, ObjectBuilder<UploadModelRequest>> fn) throws IOException, OpenSearchExceptionDeprecated.Registers a model.- Parameters:
fn- a function that initializes a builder to create theUploadModelRequest- Throws:
IOExceptionOpenSearchException
-