@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBedrockAgentRuntimeClient extends AmazonWebServiceClient implements AWSBedrockAgentRuntime
Contains APIs related to model invocation and querying of knowledge bases.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSBedrockAgentRuntimeClientBuilder |
builder() |
DeleteAgentMemoryResult |
deleteAgentMemory(DeleteAgentMemoryRequest request)
Deletes memory from the specified memory identifier.
|
GetAgentMemoryResult |
getAgentMemory(GetAgentMemoryRequest request)
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 request)
Queries a knowledge base and retrieves information from it.
|
RetrieveAndGenerateResult |
retrieveAndGenerate(RetrieveAndGenerateRequest request)
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.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSBedrockAgentRuntimeClientBuilder builder()
public DeleteAgentMemoryResult deleteAgentMemory(DeleteAgentMemoryRequest request)
Deletes memory from the specified memory identifier.
deleteAgentMemory
in interface AWSBedrockAgentRuntime
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.public GetAgentMemoryResult getAgentMemory(GetAgentMemoryRequest request)
Gets the sessions stored in the memory of the agent.
getAgentMemory
in interface AWSBedrockAgentRuntime
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.public RetrieveResult retrieve(RetrieveRequest request)
Queries a knowledge base and retrieves information from it.
retrieve
in interface AWSBedrockAgentRuntime
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.public RetrieveAndGenerateResult retrieveAndGenerate(RetrieveAndGenerateRequest request)
Queries a knowledge base and generates responses based on the retrieved results. The response only cites sources that are relevant to the query.
retrieveAndGenerate
in interface AWSBedrockAgentRuntime
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.public 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 the request.
getCachedResponseMetadata
in interface AWSBedrockAgentRuntime
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSBedrockAgentRuntime
shutdown
in class AmazonWebServiceClient