@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public interface AWSBedrockAgentRuntime
Note: Do not directly implement this interface, new methods are added to it regularly. Extend from
AbstractAWSBedrockAgentRuntime
instead.
Amazon Bedrock Agent
Modifier and Type | Field and Description |
---|---|
static String |
ENDPOINT_PREFIX
The region metadata service name for computing region endpoints.
|
Modifier and Type | Method and Description |
---|---|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
RetrieveResult |
retrieve(RetrieveRequest retrieveRequest)
Retrieve from knowledge base.
|
RetrieveAndGenerateResult |
retrieveAndGenerate(RetrieveAndGenerateRequest retrieveAndGenerateRequest)
RetrieveAndGenerate API
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
static final String ENDPOINT_PREFIX
RetrieveResult retrieve(RetrieveRequest retrieveRequest)
Retrieve from knowledge base.
retrieveRequest
- ConflictException
- This exception is thrown when there is a conflict performing an operationResourceNotFoundException
- This exception is thrown when a resource referenced by the operation does not existValidationException
- This exception is thrown when the request's input validation failsInternalServerException
- This exception is thrown if there was an unexpected error during processing of requestDependencyFailedException
- This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to
a customer fault (i.e. bad configuration)BadGatewayException
- This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resourceThrottlingException
- This exception is thrown when the number of requests exceeds the limitAccessDeniedException
- This exception is thrown when a request is denied per access permissionsServiceQuotaExceededException
- This exception is thrown when a request is made beyond the service quotaRetrieveAndGenerateResult retrieveAndGenerate(RetrieveAndGenerateRequest retrieveAndGenerateRequest)
RetrieveAndGenerate API
retrieveAndGenerateRequest
- ConflictException
- This exception is thrown when there is a conflict performing an operationResourceNotFoundException
- This exception is thrown when a resource referenced by the operation does not existValidationException
- This exception is thrown when the request's input validation failsInternalServerException
- This exception is thrown if there was an unexpected error during processing of requestDependencyFailedException
- This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to
a customer fault (i.e. bad configuration)BadGatewayException
- This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resourceThrottlingException
- This exception is thrown when the number of requests exceeds the limitAccessDeniedException
- This exception is thrown when a request is denied per access permissionsServiceQuotaExceededException
- This exception is thrown when a request is made beyond the service quotavoid shutdown()
ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
request
- The originally executed request.