@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AmazonBedrockRuntimeAsync extends AmazonBedrockRuntime
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
AbstractAmazonBedrockRuntimeAsync
instead.
Describes the API operations for running inference using Bedrock models.
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
Future<InvokeModelResult> |
invokeModelAsync(InvokeModelRequest invokeModelRequest)
Invokes the specified Bedrock model to run inference using the input provided in the request body.
|
Future<InvokeModelResult> |
invokeModelAsync(InvokeModelRequest invokeModelRequest,
AsyncHandler<InvokeModelRequest,InvokeModelResult> asyncHandler)
Invokes the specified Bedrock model to run inference using the input provided in the request body.
|
getCachedResponseMetadata, invokeModel, shutdown
Future<InvokeModelResult> invokeModelAsync(InvokeModelRequest invokeModelRequest)
Invokes the specified Bedrock model to run inference using the input provided in the request body. You use InvokeModel to run inference for text models, image models, and embedding models.
For more information, see Run inference in the Bedrock User Guide.
For example requests, see Examples (after the Errors section).
invokeModelRequest
- Future<InvokeModelResult> invokeModelAsync(InvokeModelRequest invokeModelRequest, AsyncHandler<InvokeModelRequest,InvokeModelResult> asyncHandler)
Invokes the specified Bedrock model to run inference using the input provided in the request body. You use InvokeModel to run inference for text models, image models, and embedding models.
For more information, see Run inference in the Bedrock User Guide.
For example requests, see Examples (after the Errors section).
invokeModelRequest
- 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.