@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<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.
|
getCachedResponseMetadata, retrieve, retrieveAndGenerate, shutdown
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.