@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSBedrockAgentAsyncClient extends AWSBedrockAgentClient implements AWSBedrockAgentAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Describes the API operations for creating and managing Amazon Bedrock agents.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
associateAgentKnowledgeBase, builder, createAgent, createAgentActionGroup, createAgentAlias, createDataSource, createKnowledgeBase, deleteAgent, deleteAgentActionGroup, deleteAgentAlias, deleteAgentVersion, deleteDataSource, deleteKnowledgeBase, disassociateAgentKnowledgeBase, getAgent, getAgentActionGroup, getAgentAlias, getAgentKnowledgeBase, getAgentVersion, getCachedResponseMetadata, getDataSource, getIngestionJob, getKnowledgeBase, listAgentActionGroups, listAgentAliases, listAgentKnowledgeBases, listAgents, listAgentVersions, listDataSources, listIngestionJobs, listKnowledgeBases, listTagsForResource, prepareAgent, startIngestionJob, tagResource, untagResource, updateAgent, updateAgentActionGroup, updateAgentAlias, updateAgentKnowledgeBase, updateDataSource, updateKnowledgeBase
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
associateAgentKnowledgeBase, createAgent, createAgentActionGroup, createAgentAlias, createDataSource, createKnowledgeBase, deleteAgent, deleteAgentActionGroup, deleteAgentAlias, deleteAgentVersion, deleteDataSource, deleteKnowledgeBase, disassociateAgentKnowledgeBase, getAgent, getAgentActionGroup, getAgentAlias, getAgentKnowledgeBase, getAgentVersion, getCachedResponseMetadata, getDataSource, getIngestionJob, getKnowledgeBase, listAgentActionGroups, listAgentAliases, listAgentKnowledgeBases, listAgents, listAgentVersions, listDataSources, listIngestionJobs, listKnowledgeBases, listTagsForResource, prepareAgent, startIngestionJob, tagResource, untagResource, updateAgent, updateAgentActionGroup, updateAgentAlias, updateAgentKnowledgeBase, updateDataSource, updateKnowledgeBase
public static AWSBedrockAgentAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<AssociateAgentKnowledgeBaseResult> associateAgentKnowledgeBaseAsync(AssociateAgentKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Associates a knowledge base with an agent. If a knowledge base is associated and its indexState
is
set to Enabled
, the agent queries the knowledge base for information to augment its response to the
user.
associateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<AssociateAgentKnowledgeBaseResult> associateAgentKnowledgeBaseAsync(AssociateAgentKnowledgeBaseRequest request, AsyncHandler<AssociateAgentKnowledgeBaseRequest,AssociateAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Associates a knowledge base with an agent. If a knowledge base is associated and its indexState
is
set to Enabled
, the agent queries the knowledge base for information to augment its response to the
user.
associateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
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.public Future<CreateAgentResult> createAgentAsync(CreateAgentRequest request)
AWSBedrockAgentAsync
Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.
Specify the following fields for security purposes.
agentResourceRoleArn
– The Amazon Resource Name (ARN) of the role with permissions to invoke API
operations on an agent.
(Optional) customerEncryptionKeyArn
– The Amazon Resource Name (ARN) of a KMS key to encrypt the
creation of the agent.
(Optional) idleSessionTTLinSeconds
– Specify the number of seconds for which the agent should
maintain session information. After this time expires, the subsequent InvokeAgent
request begins a
new session.
To override the default prompt behavior for agent orchestration and to use advanced prompts, include a
promptOverrideConfiguration
object. For more information, see Advanced prompts.
If you agent fails to be created, the response returns a list of failureReasons
alongside a list of
recommendedActions
for you to troubleshoot.
createAgentAsync
in interface AWSBedrockAgentAsync
public Future<CreateAgentResult> createAgentAsync(CreateAgentRequest request, AsyncHandler<CreateAgentRequest,CreateAgentResult> asyncHandler)
AWSBedrockAgentAsync
Creates an agent that orchestrates interactions between foundation models, data sources, software applications, user conversations, and APIs to carry out tasks to help customers.
Specify the following fields for security purposes.
agentResourceRoleArn
– The Amazon Resource Name (ARN) of the role with permissions to invoke API
operations on an agent.
(Optional) customerEncryptionKeyArn
– The Amazon Resource Name (ARN) of a KMS key to encrypt the
creation of the agent.
(Optional) idleSessionTTLinSeconds
– Specify the number of seconds for which the agent should
maintain session information. After this time expires, the subsequent InvokeAgent
request begins a
new session.
To override the default prompt behavior for agent orchestration and to use advanced prompts, include a
promptOverrideConfiguration
object. For more information, see Advanced prompts.
If you agent fails to be created, the response returns a list of failureReasons
alongside a list of
recommendedActions
for you to troubleshoot.
createAgentAsync
in interface AWSBedrockAgentAsync
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.public Future<CreateAgentActionGroupResult> createAgentActionGroupAsync(CreateAgentActionGroupRequest request)
AWSBedrockAgentAsync
Creates an action group for an agent. An action group represents the actions that an agent can carry out for the customer by defining the APIs that an agent can call and the logic for calling them.
To allow your agent to request the user for additional information when trying to complete a task, add an action
group with the parentActionGroupSignature
field set to AMAZON.UserInput
. You must leave
the description
, apiSchema
, and actionGroupExecutor
fields blank for this
action group. During orchestration, if your agent determines that it needs to invoke an API in an action group,
but doesn't have enough information to complete the API request, it will invoke this action group instead and
return an Observation
reprompting the user for more information.
createAgentActionGroupAsync
in interface AWSBedrockAgentAsync
public Future<CreateAgentActionGroupResult> createAgentActionGroupAsync(CreateAgentActionGroupRequest request, AsyncHandler<CreateAgentActionGroupRequest,CreateAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsync
Creates an action group for an agent. An action group represents the actions that an agent can carry out for the customer by defining the APIs that an agent can call and the logic for calling them.
To allow your agent to request the user for additional information when trying to complete a task, add an action
group with the parentActionGroupSignature
field set to AMAZON.UserInput
. You must leave
the description
, apiSchema
, and actionGroupExecutor
fields blank for this
action group. During orchestration, if your agent determines that it needs to invoke an API in an action group,
but doesn't have enough information to complete the API request, it will invoke this action group instead and
return an Observation
reprompting the user for more information.
createAgentActionGroupAsync
in interface AWSBedrockAgentAsync
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.public Future<CreateAgentAliasResult> createAgentAliasAsync(CreateAgentAliasRequest request)
AWSBedrockAgentAsync
Creates an alias of an agent that can be used to deploy the agent.
createAgentAliasAsync
in interface AWSBedrockAgentAsync
public Future<CreateAgentAliasResult> createAgentAliasAsync(CreateAgentAliasRequest request, AsyncHandler<CreateAgentAliasRequest,CreateAgentAliasResult> asyncHandler)
AWSBedrockAgentAsync
Creates an alias of an agent that can be used to deploy the agent.
createAgentAliasAsync
in interface AWSBedrockAgentAsync
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.public Future<CreateDataSourceResult> createDataSourceAsync(CreateDataSourceRequest request)
AWSBedrockAgentAsync
Sets up a data source to be added to a knowledge base.
You can't change the chunkingConfiguration
after you create the data source.
createDataSourceAsync
in interface AWSBedrockAgentAsync
public Future<CreateDataSourceResult> createDataSourceAsync(CreateDataSourceRequest request, AsyncHandler<CreateDataSourceRequest,CreateDataSourceResult> asyncHandler)
AWSBedrockAgentAsync
Sets up a data source to be added to a knowledge base.
You can't change the chunkingConfiguration
after you create the data source.
createDataSourceAsync
in interface AWSBedrockAgentAsync
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.public Future<CreateKnowledgeBaseResult> createKnowledgeBaseAsync(CreateKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Creates a knowledge base that contains data sources from which information can be queried and used by LLMs. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see Set up your data for ingestion.
If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see Create a knowledge base.
Provide the name
and an optional description
.
Provide the Amazon Resource Name (ARN) with permissions to create a knowledge base in the roleArn
field.
Provide the embedding model to use in the embeddingModelArn
field in the
knowledgeBaseConfiguration
object.
Provide the configuration for your vector store in the storageConfiguration
object.
For an Amazon OpenSearch Service database, use the opensearchServerlessConfiguration
object. For
more information, see Create a vector store
in Amazon OpenSearch Service.
For an Amazon Aurora database, use the RdsConfiguration
object. For more information, see Create a vector store
in Amazon Aurora.
For a Pinecone database, use the pineconeConfiguration
object. For more information, see Create a vector
store in Pinecone.
For a Redis Enterprise Cloud database, use the redisEnterpriseCloudConfiguration
object. For more
information, see Create a vector store
in Redis Enterprise Cloud.
createKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<CreateKnowledgeBaseResult> createKnowledgeBaseAsync(CreateKnowledgeBaseRequest request, AsyncHandler<CreateKnowledgeBaseRequest,CreateKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Creates a knowledge base that contains data sources from which information can be queried and used by LLMs. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see Set up your data for ingestion.
If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see Create a knowledge base.
Provide the name
and an optional description
.
Provide the Amazon Resource Name (ARN) with permissions to create a knowledge base in the roleArn
field.
Provide the embedding model to use in the embeddingModelArn
field in the
knowledgeBaseConfiguration
object.
Provide the configuration for your vector store in the storageConfiguration
object.
For an Amazon OpenSearch Service database, use the opensearchServerlessConfiguration
object. For
more information, see Create a vector store
in Amazon OpenSearch Service.
For an Amazon Aurora database, use the RdsConfiguration
object. For more information, see Create a vector store
in Amazon Aurora.
For a Pinecone database, use the pineconeConfiguration
object. For more information, see Create a vector
store in Pinecone.
For a Redis Enterprise Cloud database, use the redisEnterpriseCloudConfiguration
object. For more
information, see Create a vector store
in Redis Enterprise Cloud.
createKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
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.public Future<DeleteAgentResult> deleteAgentAsync(DeleteAgentRequest request)
AWSBedrockAgentAsync
Deletes an agent.
deleteAgentAsync
in interface AWSBedrockAgentAsync
public Future<DeleteAgentResult> deleteAgentAsync(DeleteAgentRequest request, AsyncHandler<DeleteAgentRequest,DeleteAgentResult> asyncHandler)
AWSBedrockAgentAsync
Deletes an agent.
deleteAgentAsync
in interface AWSBedrockAgentAsync
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.public Future<DeleteAgentActionGroupResult> deleteAgentActionGroupAsync(DeleteAgentActionGroupRequest request)
AWSBedrockAgentAsync
Deletes an action group in an agent.
deleteAgentActionGroupAsync
in interface AWSBedrockAgentAsync
public Future<DeleteAgentActionGroupResult> deleteAgentActionGroupAsync(DeleteAgentActionGroupRequest request, AsyncHandler<DeleteAgentActionGroupRequest,DeleteAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsync
Deletes an action group in an agent.
deleteAgentActionGroupAsync
in interface AWSBedrockAgentAsync
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.public Future<DeleteAgentAliasResult> deleteAgentAliasAsync(DeleteAgentAliasRequest request)
AWSBedrockAgentAsync
Deletes an alias of an agent.
deleteAgentAliasAsync
in interface AWSBedrockAgentAsync
public Future<DeleteAgentAliasResult> deleteAgentAliasAsync(DeleteAgentAliasRequest request, AsyncHandler<DeleteAgentAliasRequest,DeleteAgentAliasResult> asyncHandler)
AWSBedrockAgentAsync
Deletes an alias of an agent.
deleteAgentAliasAsync
in interface AWSBedrockAgentAsync
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.public Future<DeleteAgentVersionResult> deleteAgentVersionAsync(DeleteAgentVersionRequest request)
AWSBedrockAgentAsync
Deletes a version of an agent.
deleteAgentVersionAsync
in interface AWSBedrockAgentAsync
public Future<DeleteAgentVersionResult> deleteAgentVersionAsync(DeleteAgentVersionRequest request, AsyncHandler<DeleteAgentVersionRequest,DeleteAgentVersionResult> asyncHandler)
AWSBedrockAgentAsync
Deletes a version of an agent.
deleteAgentVersionAsync
in interface AWSBedrockAgentAsync
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.public Future<DeleteDataSourceResult> deleteDataSourceAsync(DeleteDataSourceRequest request)
AWSBedrockAgentAsync
Deletes a data source from a knowledge base.
deleteDataSourceAsync
in interface AWSBedrockAgentAsync
public Future<DeleteDataSourceResult> deleteDataSourceAsync(DeleteDataSourceRequest request, AsyncHandler<DeleteDataSourceRequest,DeleteDataSourceResult> asyncHandler)
AWSBedrockAgentAsync
Deletes a data source from a knowledge base.
deleteDataSourceAsync
in interface AWSBedrockAgentAsync
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.public Future<DeleteKnowledgeBaseResult> deleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Deletes a knowledge base. Before deleting a knowledge base, you should disassociate the knowledge base from any agents that it is associated with by making a DisassociateAgentKnowledgeBase request.
deleteKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<DeleteKnowledgeBaseResult> deleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest request, AsyncHandler<DeleteKnowledgeBaseRequest,DeleteKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Deletes a knowledge base. Before deleting a knowledge base, you should disassociate the knowledge base from any agents that it is associated with by making a DisassociateAgentKnowledgeBase request.
deleteKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
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.public Future<DisassociateAgentKnowledgeBaseResult> disassociateAgentKnowledgeBaseAsync(DisassociateAgentKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Disassociates a knowledge base from an agent.
disassociateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<DisassociateAgentKnowledgeBaseResult> disassociateAgentKnowledgeBaseAsync(DisassociateAgentKnowledgeBaseRequest request, AsyncHandler<DisassociateAgentKnowledgeBaseRequest,DisassociateAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Disassociates a knowledge base from an agent.
disassociateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
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.public Future<GetAgentResult> getAgentAsync(GetAgentRequest request)
AWSBedrockAgentAsync
Gets information about an agent.
getAgentAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentResult> getAgentAsync(GetAgentRequest request, AsyncHandler<GetAgentRequest,GetAgentResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about an agent.
getAgentAsync
in interface AWSBedrockAgentAsync
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.public Future<GetAgentActionGroupResult> getAgentActionGroupAsync(GetAgentActionGroupRequest request)
AWSBedrockAgentAsync
Gets information about an action group for an agent.
getAgentActionGroupAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentActionGroupResult> getAgentActionGroupAsync(GetAgentActionGroupRequest request, AsyncHandler<GetAgentActionGroupRequest,GetAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about an action group for an agent.
getAgentActionGroupAsync
in interface AWSBedrockAgentAsync
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.public Future<GetAgentAliasResult> getAgentAliasAsync(GetAgentAliasRequest request)
AWSBedrockAgentAsync
Gets information about an alias of an agent.
getAgentAliasAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentAliasResult> getAgentAliasAsync(GetAgentAliasRequest request, AsyncHandler<GetAgentAliasRequest,GetAgentAliasResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about an alias of an agent.
getAgentAliasAsync
in interface AWSBedrockAgentAsync
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.public Future<GetAgentKnowledgeBaseResult> getAgentKnowledgeBaseAsync(GetAgentKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Gets information about a knowledge base associated with an agent.
getAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentKnowledgeBaseResult> getAgentKnowledgeBaseAsync(GetAgentKnowledgeBaseRequest request, AsyncHandler<GetAgentKnowledgeBaseRequest,GetAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about a knowledge base associated with an agent.
getAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
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.public Future<GetAgentVersionResult> getAgentVersionAsync(GetAgentVersionRequest request)
AWSBedrockAgentAsync
Gets details about a version of an agent.
getAgentVersionAsync
in interface AWSBedrockAgentAsync
public Future<GetAgentVersionResult> getAgentVersionAsync(GetAgentVersionRequest request, AsyncHandler<GetAgentVersionRequest,GetAgentVersionResult> asyncHandler)
AWSBedrockAgentAsync
Gets details about a version of an agent.
getAgentVersionAsync
in interface AWSBedrockAgentAsync
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.public Future<GetDataSourceResult> getDataSourceAsync(GetDataSourceRequest request)
AWSBedrockAgentAsync
Gets information about a data source.
getDataSourceAsync
in interface AWSBedrockAgentAsync
public Future<GetDataSourceResult> getDataSourceAsync(GetDataSourceRequest request, AsyncHandler<GetDataSourceRequest,GetDataSourceResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about a data source.
getDataSourceAsync
in interface AWSBedrockAgentAsync
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.public Future<GetIngestionJobResult> getIngestionJobAsync(GetIngestionJobRequest request)
AWSBedrockAgentAsync
Gets information about a ingestion job, in which a data source is added to a knowledge base.
getIngestionJobAsync
in interface AWSBedrockAgentAsync
public Future<GetIngestionJobResult> getIngestionJobAsync(GetIngestionJobRequest request, AsyncHandler<GetIngestionJobRequest,GetIngestionJobResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about a ingestion job, in which a data source is added to a knowledge base.
getIngestionJobAsync
in interface AWSBedrockAgentAsync
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.public Future<GetKnowledgeBaseResult> getKnowledgeBaseAsync(GetKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Gets information about a knoweldge base.
getKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<GetKnowledgeBaseResult> getKnowledgeBaseAsync(GetKnowledgeBaseRequest request, AsyncHandler<GetKnowledgeBaseRequest,GetKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Gets information about a knoweldge base.
getKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
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.public Future<ListAgentActionGroupsResult> listAgentActionGroupsAsync(ListAgentActionGroupsRequest request)
AWSBedrockAgentAsync
Lists the action groups for an agent and information about each one.
listAgentActionGroupsAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentActionGroupsResult> listAgentActionGroupsAsync(ListAgentActionGroupsRequest request, AsyncHandler<ListAgentActionGroupsRequest,ListAgentActionGroupsResult> asyncHandler)
AWSBedrockAgentAsync
Lists the action groups for an agent and information about each one.
listAgentActionGroupsAsync
in interface AWSBedrockAgentAsync
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.public Future<ListAgentAliasesResult> listAgentAliasesAsync(ListAgentAliasesRequest request)
AWSBedrockAgentAsync
Lists the aliases of an agent and information about each one.
listAgentAliasesAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentAliasesResult> listAgentAliasesAsync(ListAgentAliasesRequest request, AsyncHandler<ListAgentAliasesRequest,ListAgentAliasesResult> asyncHandler)
AWSBedrockAgentAsync
Lists the aliases of an agent and information about each one.
listAgentAliasesAsync
in interface AWSBedrockAgentAsync
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.public Future<ListAgentKnowledgeBasesResult> listAgentKnowledgeBasesAsync(ListAgentKnowledgeBasesRequest request)
AWSBedrockAgentAsync
Lists knowledge bases associated with an agent and information about each one.
listAgentKnowledgeBasesAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentKnowledgeBasesResult> listAgentKnowledgeBasesAsync(ListAgentKnowledgeBasesRequest request, AsyncHandler<ListAgentKnowledgeBasesRequest,ListAgentKnowledgeBasesResult> asyncHandler)
AWSBedrockAgentAsync
Lists knowledge bases associated with an agent and information about each one.
listAgentKnowledgeBasesAsync
in interface AWSBedrockAgentAsync
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.public Future<ListAgentVersionsResult> listAgentVersionsAsync(ListAgentVersionsRequest request)
AWSBedrockAgentAsync
Lists the versions of an agent and information about each version.
listAgentVersionsAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentVersionsResult> listAgentVersionsAsync(ListAgentVersionsRequest request, AsyncHandler<ListAgentVersionsRequest,ListAgentVersionsResult> asyncHandler)
AWSBedrockAgentAsync
Lists the versions of an agent and information about each version.
listAgentVersionsAsync
in interface AWSBedrockAgentAsync
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.public Future<ListAgentsResult> listAgentsAsync(ListAgentsRequest request)
AWSBedrockAgentAsync
Lists the agents belonging to an account and information about each agent.
listAgentsAsync
in interface AWSBedrockAgentAsync
public Future<ListAgentsResult> listAgentsAsync(ListAgentsRequest request, AsyncHandler<ListAgentsRequest,ListAgentsResult> asyncHandler)
AWSBedrockAgentAsync
Lists the agents belonging to an account and information about each agent.
listAgentsAsync
in interface AWSBedrockAgentAsync
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.public Future<ListDataSourcesResult> listDataSourcesAsync(ListDataSourcesRequest request)
AWSBedrockAgentAsync
Lists the data sources in a knowledge base and information about each one.
listDataSourcesAsync
in interface AWSBedrockAgentAsync
public Future<ListDataSourcesResult> listDataSourcesAsync(ListDataSourcesRequest request, AsyncHandler<ListDataSourcesRequest,ListDataSourcesResult> asyncHandler)
AWSBedrockAgentAsync
Lists the data sources in a knowledge base and information about each one.
listDataSourcesAsync
in interface AWSBedrockAgentAsync
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.public Future<ListIngestionJobsResult> listIngestionJobsAsync(ListIngestionJobsRequest request)
AWSBedrockAgentAsync
Lists the ingestion jobs for a data source and information about each of them.
listIngestionJobsAsync
in interface AWSBedrockAgentAsync
public Future<ListIngestionJobsResult> listIngestionJobsAsync(ListIngestionJobsRequest request, AsyncHandler<ListIngestionJobsRequest,ListIngestionJobsResult> asyncHandler)
AWSBedrockAgentAsync
Lists the ingestion jobs for a data source and information about each of them.
listIngestionJobsAsync
in interface AWSBedrockAgentAsync
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.public Future<ListKnowledgeBasesResult> listKnowledgeBasesAsync(ListKnowledgeBasesRequest request)
AWSBedrockAgentAsync
Lists the knowledge bases in an account and information about each of them.
listKnowledgeBasesAsync
in interface AWSBedrockAgentAsync
public Future<ListKnowledgeBasesResult> listKnowledgeBasesAsync(ListKnowledgeBasesRequest request, AsyncHandler<ListKnowledgeBasesRequest,ListKnowledgeBasesResult> asyncHandler)
AWSBedrockAgentAsync
Lists the knowledge bases in an account and information about each of them.
listKnowledgeBasesAsync
in interface AWSBedrockAgentAsync
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.public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request)
AWSBedrockAgentAsync
List all the tags for the resource you specify.
listTagsForResourceAsync
in interface AWSBedrockAgentAsync
public Future<ListTagsForResourceResult> listTagsForResourceAsync(ListTagsForResourceRequest request, AsyncHandler<ListTagsForResourceRequest,ListTagsForResourceResult> asyncHandler)
AWSBedrockAgentAsync
List all the tags for the resource you specify.
listTagsForResourceAsync
in interface AWSBedrockAgentAsync
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.public Future<PrepareAgentResult> prepareAgentAsync(PrepareAgentRequest request)
AWSBedrockAgentAsync
Creates a DRAFT
version of the agent that can be used for internal testing.
prepareAgentAsync
in interface AWSBedrockAgentAsync
public Future<PrepareAgentResult> prepareAgentAsync(PrepareAgentRequest request, AsyncHandler<PrepareAgentRequest,PrepareAgentResult> asyncHandler)
AWSBedrockAgentAsync
Creates a DRAFT
version of the agent that can be used for internal testing.
prepareAgentAsync
in interface AWSBedrockAgentAsync
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.public Future<StartIngestionJobResult> startIngestionJobAsync(StartIngestionJobRequest request)
AWSBedrockAgentAsync
Begins an ingestion job, in which a data source is added to a knowledge base.
startIngestionJobAsync
in interface AWSBedrockAgentAsync
public Future<StartIngestionJobResult> startIngestionJobAsync(StartIngestionJobRequest request, AsyncHandler<StartIngestionJobRequest,StartIngestionJobResult> asyncHandler)
AWSBedrockAgentAsync
Begins an ingestion job, in which a data source is added to a knowledge base.
startIngestionJobAsync
in interface AWSBedrockAgentAsync
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.public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request)
AWSBedrockAgentAsync
Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
tagResourceAsync
in interface AWSBedrockAgentAsync
public Future<TagResourceResult> tagResourceAsync(TagResourceRequest request, AsyncHandler<TagResourceRequest,TagResourceResult> asyncHandler)
AWSBedrockAgentAsync
Associate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
tagResourceAsync
in interface AWSBedrockAgentAsync
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.public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request)
AWSBedrockAgentAsync
Remove tags from a resource.
untagResourceAsync
in interface AWSBedrockAgentAsync
public Future<UntagResourceResult> untagResourceAsync(UntagResourceRequest request, AsyncHandler<UntagResourceRequest,UntagResourceResult> asyncHandler)
AWSBedrockAgentAsync
Remove tags from a resource.
untagResourceAsync
in interface AWSBedrockAgentAsync
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.public Future<UpdateAgentResult> updateAgentAsync(UpdateAgentRequest request)
AWSBedrockAgentAsync
Updates the configuration of an agent.
updateAgentAsync
in interface AWSBedrockAgentAsync
public Future<UpdateAgentResult> updateAgentAsync(UpdateAgentRequest request, AsyncHandler<UpdateAgentRequest,UpdateAgentResult> asyncHandler)
AWSBedrockAgentAsync
Updates the configuration of an agent.
updateAgentAsync
in interface AWSBedrockAgentAsync
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.public Future<UpdateAgentActionGroupResult> updateAgentActionGroupAsync(UpdateAgentActionGroupRequest request)
AWSBedrockAgentAsync
Updates the configuration for an action group for an agent.
updateAgentActionGroupAsync
in interface AWSBedrockAgentAsync
public Future<UpdateAgentActionGroupResult> updateAgentActionGroupAsync(UpdateAgentActionGroupRequest request, AsyncHandler<UpdateAgentActionGroupRequest,UpdateAgentActionGroupResult> asyncHandler)
AWSBedrockAgentAsync
Updates the configuration for an action group for an agent.
updateAgentActionGroupAsync
in interface AWSBedrockAgentAsync
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.public Future<UpdateAgentAliasResult> updateAgentAliasAsync(UpdateAgentAliasRequest request)
AWSBedrockAgentAsync
Updates configurations for an alias of an agent.
updateAgentAliasAsync
in interface AWSBedrockAgentAsync
public Future<UpdateAgentAliasResult> updateAgentAliasAsync(UpdateAgentAliasRequest request, AsyncHandler<UpdateAgentAliasRequest,UpdateAgentAliasResult> asyncHandler)
AWSBedrockAgentAsync
Updates configurations for an alias of an agent.
updateAgentAliasAsync
in interface AWSBedrockAgentAsync
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.public Future<UpdateAgentKnowledgeBaseResult> updateAgentKnowledgeBaseAsync(UpdateAgentKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Updates the configuration for a knowledge base that has been associated with an agent.
updateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<UpdateAgentKnowledgeBaseResult> updateAgentKnowledgeBaseAsync(UpdateAgentKnowledgeBaseRequest request, AsyncHandler<UpdateAgentKnowledgeBaseRequest,UpdateAgentKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Updates the configuration for a knowledge base that has been associated with an agent.
updateAgentKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
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.public Future<UpdateDataSourceResult> updateDataSourceAsync(UpdateDataSourceRequest request)
AWSBedrockAgentAsync
Updates configurations for a data source.
You can't change the chunkingConfiguration
after you create the data source. Specify the existing
chunkingConfiguration
.
updateDataSourceAsync
in interface AWSBedrockAgentAsync
public Future<UpdateDataSourceResult> updateDataSourceAsync(UpdateDataSourceRequest request, AsyncHandler<UpdateDataSourceRequest,UpdateDataSourceResult> asyncHandler)
AWSBedrockAgentAsync
Updates configurations for a data source.
You can't change the chunkingConfiguration
after you create the data source. Specify the existing
chunkingConfiguration
.
updateDataSourceAsync
in interface AWSBedrockAgentAsync
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.public Future<UpdateKnowledgeBaseResult> updateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request)
AWSBedrockAgentAsync
Updates the configuration of a knowledge base with the fields that you specify. Because all fields will be overwritten, you must include the same values for fields that you want to keep the same.
You can change the following fields:
name
description
roleArn
You can't change the knowledgeBaseConfiguration
or storageConfiguration
fields, so you
must specify the same configurations as when you created the knowledge base. You can send a GetKnowledgeBase request and copy the same configurations.
updateKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
public Future<UpdateKnowledgeBaseResult> updateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest request, AsyncHandler<UpdateKnowledgeBaseRequest,UpdateKnowledgeBaseResult> asyncHandler)
AWSBedrockAgentAsync
Updates the configuration of a knowledge base with the fields that you specify. Because all fields will be overwritten, you must include the same values for fields that you want to keep the same.
You can change the following fields:
name
description
roleArn
You can't change the knowledgeBaseConfiguration
or storageConfiguration
fields, so you
must specify the same configurations as when you created the knowledge base. You can send a GetKnowledgeBase request and copy the same configurations.
updateKnowledgeBaseAsync
in interface AWSBedrockAgentAsync
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.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSBedrockAgent
shutdown
in class AWSBedrockAgentClient