@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAWSBedrockAgentRuntimeAsync extends AbstractAWSBedrockAgentRuntime implements AWSBedrockAgentRuntimeAsync
AWSBedrockAgentRuntimeAsync. Convenient method forms pass through to the
corresponding overload that takes a request object and an AsyncHandler, which throws an
UnsupportedOperationException.ENDPOINT_PREFIX| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAWSBedrockAgentRuntimeAsync() |
| Modifier and Type | Method and Description |
|---|---|
Future<RetrieveAndGenerateResult> |
retrieveAndGenerateAsync(RetrieveAndGenerateRequest request)
Queries a knowledge base and generates responses based on the retrieved results.
|
Future<RetrieveAndGenerateResult> |
retrieveAndGenerateAsync(RetrieveAndGenerateRequest request,
AsyncHandler<RetrieveAndGenerateRequest,RetrieveAndGenerateResult> asyncHandler)
Queries a knowledge base and generates responses based on the retrieved results.
|
Future<RetrieveResult> |
retrieveAsync(RetrieveRequest request)
Queries a knowledge base and retrieves information from it.
|
Future<RetrieveResult> |
retrieveAsync(RetrieveRequest request,
AsyncHandler<RetrieveRequest,RetrieveResult> asyncHandler)
Queries a knowledge base and retrieves information from it.
|
getCachedResponseMetadata, retrieve, retrieveAndGenerate, shutdownclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCachedResponseMetadata, retrieve, retrieveAndGenerate, shutdownprotected AbstractAWSBedrockAgentRuntimeAsync()
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.Copyright © 2024. All rights reserved.