@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBedrockAgentRuntimeAsyncClient extends AWSBedrockAgentRuntimeClient implements AWSBedrockAgentRuntimeAsync
AsyncHandler can be used to
receive notification when an asynchronous operation completes.
Contains APIs related to model invocation and querying of knowledge bases.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, deleteAgentMemory, getAgentMemory, getCachedResponseMetadata, retrieve, retrieveAndGenerateaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdeleteAgentMemory, getAgentMemory, getCachedResponseMetadata, retrieve, retrieveAndGeneratepublic static AWSBedrockAgentRuntimeAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<DeleteAgentMemoryResult> deleteAgentMemoryAsync(DeleteAgentMemoryRequest request)
AWSBedrockAgentRuntimeAsyncDeletes memory from the specified memory identifier.
deleteAgentMemoryAsync in interface AWSBedrockAgentRuntimeAsyncpublic Future<DeleteAgentMemoryResult> deleteAgentMemoryAsync(DeleteAgentMemoryRequest request, AsyncHandler<DeleteAgentMemoryRequest,DeleteAgentMemoryResult> asyncHandler)
AWSBedrockAgentRuntimeAsyncDeletes memory from the specified memory identifier.
deleteAgentMemoryAsync in interface AWSBedrockAgentRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetAgentMemoryResult> getAgentMemoryAsync(GetAgentMemoryRequest request)
AWSBedrockAgentRuntimeAsyncGets the sessions stored in the memory of the agent.
getAgentMemoryAsync in interface AWSBedrockAgentRuntimeAsyncpublic Future<GetAgentMemoryResult> getAgentMemoryAsync(GetAgentMemoryRequest request, AsyncHandler<GetAgentMemoryRequest,GetAgentMemoryResult> asyncHandler)
AWSBedrockAgentRuntimeAsyncGets the sessions stored in the memory of the agent.
getAgentMemoryAsync in interface AWSBedrockAgentRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RetrieveResult> retrieveAsync(RetrieveRequest request)
AWSBedrockAgentRuntimeAsyncQueries a knowledge base and retrieves information from it.
retrieveAsync in interface AWSBedrockAgentRuntimeAsyncpublic Future<RetrieveResult> retrieveAsync(RetrieveRequest request, AsyncHandler<RetrieveRequest,RetrieveResult> asyncHandler)
AWSBedrockAgentRuntimeAsyncQueries a knowledge base and retrieves information from it.
retrieveAsync in interface AWSBedrockAgentRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<RetrieveAndGenerateResult> retrieveAndGenerateAsync(RetrieveAndGenerateRequest request)
AWSBedrockAgentRuntimeAsyncQueries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.
retrieveAndGenerateAsync in interface AWSBedrockAgentRuntimeAsyncpublic Future<RetrieveAndGenerateResult> retrieveAndGenerateAsync(RetrieveAndGenerateRequest request, AsyncHandler<RetrieveAndGenerateRequest,RetrieveAndGenerateResult> asyncHandler)
AWSBedrockAgentRuntimeAsyncQueries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.
retrieveAndGenerateAsync in interface AWSBedrockAgentRuntimeAsyncasyncHandler - Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public void shutdown()
getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to
calling this method.shutdown in interface AWSBedrockAgentRuntimeshutdown in class AWSBedrockAgentRuntimeClient