@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSBedrockAgentRuntimeAsync extends AWSBedrockAgentRuntime
AsyncHandler
can be used to
receive notification when an asynchronous operation completes.
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSBedrockAgentRuntimeAsync
instead.
Contains APIs related to model invocation and querying of knowledge bases.
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<DeleteAgentMemoryResult> |
deleteAgentMemoryAsync(DeleteAgentMemoryRequest deleteAgentMemoryRequest)
Deletes memory from the specified memory identifier.
|
Future<DeleteAgentMemoryResult> |
deleteAgentMemoryAsync(DeleteAgentMemoryRequest deleteAgentMemoryRequest,
AsyncHandler<DeleteAgentMemoryRequest,DeleteAgentMemoryResult> asyncHandler)
Deletes memory from the specified memory identifier.
|
Future<GetAgentMemoryResult> |
getAgentMemoryAsync(GetAgentMemoryRequest getAgentMemoryRequest)
Gets the sessions stored in the memory of the agent.
|
Future<GetAgentMemoryResult> |
getAgentMemoryAsync(GetAgentMemoryRequest getAgentMemoryRequest,
AsyncHandler<GetAgentMemoryRequest,GetAgentMemoryResult> asyncHandler)
Gets the sessions stored in the memory of the agent.
|
Future<RetrieveAndGenerateResult> |
retrieveAndGenerateAsync(RetrieveAndGenerateRequest retrieveAndGenerateRequest)
Queries a knowledge base and generates responses based on the retrieved results.
|
Future<RetrieveAndGenerateResult> |
retrieveAndGenerateAsync(RetrieveAndGenerateRequest retrieveAndGenerateRequest,
AsyncHandler<RetrieveAndGenerateRequest,RetrieveAndGenerateResult> asyncHandler)
Queries a knowledge base and generates responses based on the retrieved results.
|
Future<RetrieveResult> |
retrieveAsync(RetrieveRequest retrieveRequest)
Queries a knowledge base and retrieves information from it.
|
Future<RetrieveResult> |
retrieveAsync(RetrieveRequest retrieveRequest,
AsyncHandler<RetrieveRequest,RetrieveResult> asyncHandler)
Queries a knowledge base and retrieves information from it.
|
deleteAgentMemory, getAgentMemory, getCachedResponseMetadata, retrieve, retrieveAndGenerate, shutdown
Future<DeleteAgentMemoryResult> deleteAgentMemoryAsync(DeleteAgentMemoryRequest deleteAgentMemoryRequest)
Deletes memory from the specified memory identifier.
deleteAgentMemoryRequest
- Future<DeleteAgentMemoryResult> deleteAgentMemoryAsync(DeleteAgentMemoryRequest deleteAgentMemoryRequest, AsyncHandler<DeleteAgentMemoryRequest,DeleteAgentMemoryResult> asyncHandler)
Deletes memory from the specified memory identifier.
deleteAgentMemoryRequest
- asyncHandler
- 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.Future<GetAgentMemoryResult> getAgentMemoryAsync(GetAgentMemoryRequest getAgentMemoryRequest)
Gets the sessions stored in the memory of the agent.
getAgentMemoryRequest
- Future<GetAgentMemoryResult> getAgentMemoryAsync(GetAgentMemoryRequest getAgentMemoryRequest, AsyncHandler<GetAgentMemoryRequest,GetAgentMemoryResult> asyncHandler)
Gets the sessions stored in the memory of the agent.
getAgentMemoryRequest
- asyncHandler
- 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.Future<RetrieveResult> retrieveAsync(RetrieveRequest retrieveRequest)
Queries a knowledge base and retrieves information from it.
retrieveRequest
- Future<RetrieveResult> retrieveAsync(RetrieveRequest retrieveRequest, AsyncHandler<RetrieveRequest,RetrieveResult> asyncHandler)
Queries a knowledge base and retrieves information from it.
retrieveRequest
- asyncHandler
- 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.Future<RetrieveAndGenerateResult> retrieveAndGenerateAsync(RetrieveAndGenerateRequest retrieveAndGenerateRequest)
Queries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.
retrieveAndGenerateRequest
- Future<RetrieveAndGenerateResult> retrieveAndGenerateAsync(RetrieveAndGenerateRequest retrieveAndGenerateRequest, AsyncHandler<RetrieveAndGenerateRequest,RetrieveAndGenerateResult> asyncHandler)
Queries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.
retrieveAndGenerateRequest
- asyncHandler
- 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.