@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.
Contains APIs related to model invocation and querying of knowledge bases.
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 |
---|---|
DeleteAgentMemoryResult |
deleteAgentMemory(DeleteAgentMemoryRequest deleteAgentMemoryRequest)
Deletes memory from the specified memory identifier.
|
GetAgentMemoryResult |
getAgentMemory(GetAgentMemoryRequest getAgentMemoryRequest)
Gets the sessions stored in the memory of the agent.
|
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)
Queries a knowledge base and retrieves information from it.
|
RetrieveAndGenerateResult |
retrieveAndGenerate(RetrieveAndGenerateRequest retrieveAndGenerateRequest)
Queries a knowledge base and generates responses based on the retrieved results.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
static final String ENDPOINT_PREFIX
DeleteAgentMemoryResult deleteAgentMemory(DeleteAgentMemoryRequest deleteAgentMemoryRequest)
Deletes memory from the specified memory identifier.
deleteAgentMemoryRequest
- ConflictException
- There was a conflict performing an operation. Resolve the conflict and retry your request.ResourceNotFoundException
- The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and
try your request again.ValidationException
- Input validation failed. Check your request parameters and retry the request.InternalServerException
- An internal server error occurred. Retry your request.DependencyFailedException
- There was an issue with a dependency. Check the resource configurations and retry the request.BadGatewayException
- There was an issue with a dependency due to a server issue. Retry your request.ThrottlingException
- The number of requests exceeds the limit. Resubmit your request later.AccessDeniedException
- The request is denied because of missing access permissions. Check your permissions and retry your
request.ServiceQuotaExceededException
- The number of requests exceeds the service quota. Resubmit your request later.GetAgentMemoryResult getAgentMemory(GetAgentMemoryRequest getAgentMemoryRequest)
Gets the sessions stored in the memory of the agent.
getAgentMemoryRequest
- ConflictException
- There was a conflict performing an operation. Resolve the conflict and retry your request.ResourceNotFoundException
- The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and
try your request again.ValidationException
- Input validation failed. Check your request parameters and retry the request.InternalServerException
- An internal server error occurred. Retry your request.DependencyFailedException
- There was an issue with a dependency. Check the resource configurations and retry the request.BadGatewayException
- There was an issue with a dependency due to a server issue. Retry your request.ThrottlingException
- The number of requests exceeds the limit. Resubmit your request later.AccessDeniedException
- The request is denied because of missing access permissions. Check your permissions and retry your
request.ServiceQuotaExceededException
- The number of requests exceeds the service quota. Resubmit your request later.RetrieveResult retrieve(RetrieveRequest retrieveRequest)
Queries a knowledge base and retrieves information from it.
retrieveRequest
- ConflictException
- There was a conflict performing an operation. Resolve the conflict and retry your request.ResourceNotFoundException
- The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and
try your request again.ValidationException
- Input validation failed. Check your request parameters and retry the request.InternalServerException
- An internal server error occurred. Retry your request.DependencyFailedException
- There was an issue with a dependency. Check the resource configurations and retry the request.BadGatewayException
- There was an issue with a dependency due to a server issue. Retry your request.ThrottlingException
- The number of requests exceeds the limit. Resubmit your request later.AccessDeniedException
- The request is denied because of missing access permissions. Check your permissions and retry your
request.ServiceQuotaExceededException
- The number of requests exceeds the service quota. Resubmit your request later.RetrieveAndGenerateResult retrieveAndGenerate(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
- ConflictException
- There was a conflict performing an operation. Resolve the conflict and retry your request.ResourceNotFoundException
- The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and
try your request again.ValidationException
- Input validation failed. Check your request parameters and retry the request.InternalServerException
- An internal server error occurred. Retry your request.DependencyFailedException
- There was an issue with a dependency. Check the resource configurations and retry the request.BadGatewayException
- There was an issue with a dependency due to a server issue. Retry your request.ThrottlingException
- The number of requests exceeds the limit. Resubmit your request later.AccessDeniedException
- The request is denied because of missing access permissions. Check your permissions and retry your
request.ServiceQuotaExceededException
- The number of requests exceeds the service quota. Resubmit your request later.void 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.