All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.bedrockagent.AWSBedrockAgentAsync Maven / Gradle / Ivy

/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.bedrockagent;

import javax.annotation.Generated;

import com.amazonaws.services.bedrockagent.model.*;

/**
 * Interface for accessing Agents for Amazon Bedrock asynchronously. Each asynchronous method will return a Java Future
 * object representing the asynchronous operation; overloads which accept an {@code 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 * {@link com.amazonaws.services.bedrockagent.AbstractAWSBedrockAgentAsync} instead. *

*

*

* Describes the API operations for creating and managing Amazon Bedrock agents. *

*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AWSBedrockAgentAsync extends AWSBedrockAgent { /** *

* 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. *

* * @param associateAgentKnowledgeBaseRequest * @return A Java Future containing the result of the AssociateAgentKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsync.AssociateAgentKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future associateAgentKnowledgeBaseAsync( AssociateAgentKnowledgeBaseRequest associateAgentKnowledgeBaseRequest); /** *

* 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. *

* * @param associateAgentKnowledgeBaseRequest * @param 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. * @return A Java Future containing the result of the AssociateAgentKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.AssociateAgentKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future associateAgentKnowledgeBaseAsync( AssociateAgentKnowledgeBaseRequest associateAgentKnowledgeBaseRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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. *

    *
  • *
* * @param createAgentRequest * @return A Java Future containing the result of the CreateAgent operation returned by the service. * @sample AWSBedrockAgentAsync.CreateAgent * @see AWS API * Documentation */ java.util.concurrent.Future createAgentAsync(CreateAgentRequest createAgentRequest); /** *

* 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. *

    *
  • *
* * @param createAgentRequest * @param 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. * @return A Java Future containing the result of the CreateAgent operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreateAgent * @see AWS API * Documentation */ java.util.concurrent.Future createAgentAsync(CreateAgentRequest createAgentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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. *

* * @param createAgentActionGroupRequest * @return A Java Future containing the result of the CreateAgentActionGroup operation returned by the service. * @sample AWSBedrockAgentAsync.CreateAgentActionGroup * @see AWS API Documentation */ java.util.concurrent.Future createAgentActionGroupAsync(CreateAgentActionGroupRequest createAgentActionGroupRequest); /** *

* 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. *

* * @param createAgentActionGroupRequest * @param 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. * @return A Java Future containing the result of the CreateAgentActionGroup operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreateAgentActionGroup * @see AWS API Documentation */ java.util.concurrent.Future createAgentActionGroupAsync(CreateAgentActionGroupRequest createAgentActionGroupRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Creates an alias of an agent that can be used to deploy the agent. *

* * @param createAgentAliasRequest * @return A Java Future containing the result of the CreateAgentAlias operation returned by the service. * @sample AWSBedrockAgentAsync.CreateAgentAlias * @see AWS * API Documentation */ java.util.concurrent.Future createAgentAliasAsync(CreateAgentAliasRequest createAgentAliasRequest); /** *

* Creates an alias of an agent that can be used to deploy the agent. *

* * @param createAgentAliasRequest * @param 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. * @return A Java Future containing the result of the CreateAgentAlias operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreateAgentAlias * @see AWS * API Documentation */ java.util.concurrent.Future createAgentAliasAsync(CreateAgentAliasRequest createAgentAliasRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Sets up a data source to be added to a knowledge base. *

* *

* You can't change the chunkingConfiguration after you create the data source. *

*
* * @param createDataSourceRequest * @return A Java Future containing the result of the CreateDataSource operation returned by the service. * @sample AWSBedrockAgentAsync.CreateDataSource * @see AWS * API Documentation */ java.util.concurrent.Future createDataSourceAsync(CreateDataSourceRequest createDataSourceRequest); /** *

* Sets up a data source to be added to a knowledge base. *

* *

* You can't change the chunkingConfiguration after you create the data source. *

*
* * @param createDataSourceRequest * @param 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. * @return A Java Future containing the result of the CreateDataSource operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreateDataSource * @see AWS * API Documentation */ java.util.concurrent.Future createDataSourceAsync(CreateDataSourceRequest createDataSourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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. *

    * *
  • *
* * @param createKnowledgeBaseRequest * @return A Java Future containing the result of the CreateKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsync.CreateKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future createKnowledgeBaseAsync(CreateKnowledgeBaseRequest createKnowledgeBaseRequest); /** *

* 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. *

    * *
  • *
* * @param createKnowledgeBaseRequest * @param 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. * @return A Java Future containing the result of the CreateKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreateKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future createKnowledgeBaseAsync(CreateKnowledgeBaseRequest createKnowledgeBaseRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes an agent. *

* * @param deleteAgentRequest * @return A Java Future containing the result of the DeleteAgent operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteAgent * @see AWS API * Documentation */ java.util.concurrent.Future deleteAgentAsync(DeleteAgentRequest deleteAgentRequest); /** *

* Deletes an agent. *

* * @param deleteAgentRequest * @param 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. * @return A Java Future containing the result of the DeleteAgent operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteAgent * @see AWS API * Documentation */ java.util.concurrent.Future deleteAgentAsync(DeleteAgentRequest deleteAgentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes an action group in an agent. *

* * @param deleteAgentActionGroupRequest * @return A Java Future containing the result of the DeleteAgentActionGroup operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteAgentActionGroup * @see AWS API Documentation */ java.util.concurrent.Future deleteAgentActionGroupAsync(DeleteAgentActionGroupRequest deleteAgentActionGroupRequest); /** *

* Deletes an action group in an agent. *

* * @param deleteAgentActionGroupRequest * @param 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. * @return A Java Future containing the result of the DeleteAgentActionGroup operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteAgentActionGroup * @see AWS API Documentation */ java.util.concurrent.Future deleteAgentActionGroupAsync(DeleteAgentActionGroupRequest deleteAgentActionGroupRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes an alias of an agent. *

* * @param deleteAgentAliasRequest * @return A Java Future containing the result of the DeleteAgentAlias operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteAgentAlias * @see AWS * API Documentation */ java.util.concurrent.Future deleteAgentAliasAsync(DeleteAgentAliasRequest deleteAgentAliasRequest); /** *

* Deletes an alias of an agent. *

* * @param deleteAgentAliasRequest * @param 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. * @return A Java Future containing the result of the DeleteAgentAlias operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteAgentAlias * @see AWS * API Documentation */ java.util.concurrent.Future deleteAgentAliasAsync(DeleteAgentAliasRequest deleteAgentAliasRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes a version of an agent. *

* * @param deleteAgentVersionRequest * @return A Java Future containing the result of the DeleteAgentVersion operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteAgentVersion * @see AWS API Documentation */ java.util.concurrent.Future deleteAgentVersionAsync(DeleteAgentVersionRequest deleteAgentVersionRequest); /** *

* Deletes a version of an agent. *

* * @param deleteAgentVersionRequest * @param 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. * @return A Java Future containing the result of the DeleteAgentVersion operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteAgentVersion * @see AWS API Documentation */ java.util.concurrent.Future deleteAgentVersionAsync(DeleteAgentVersionRequest deleteAgentVersionRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes a data source from a knowledge base. *

* * @param deleteDataSourceRequest * @return A Java Future containing the result of the DeleteDataSource operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteDataSource * @see AWS * API Documentation */ java.util.concurrent.Future deleteDataSourceAsync(DeleteDataSourceRequest deleteDataSourceRequest); /** *

* Deletes a data source from a knowledge base. *

* * @param deleteDataSourceRequest * @param 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. * @return A Java Future containing the result of the DeleteDataSource operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteDataSource * @see AWS * API Documentation */ java.util.concurrent.Future deleteDataSourceAsync(DeleteDataSourceRequest deleteDataSourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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. *

* * @param deleteKnowledgeBaseRequest * @return A Java Future containing the result of the DeleteKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future deleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest deleteKnowledgeBaseRequest); /** *

* 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. *

* * @param deleteKnowledgeBaseRequest * @param 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. * @return A Java Future containing the result of the DeleteKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future deleteKnowledgeBaseAsync(DeleteKnowledgeBaseRequest deleteKnowledgeBaseRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Disassociates a knowledge base from an agent. *

* * @param disassociateAgentKnowledgeBaseRequest * @return A Java Future containing the result of the DisassociateAgentKnowledgeBase operation returned by the * service. * @sample AWSBedrockAgentAsync.DisassociateAgentKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future disassociateAgentKnowledgeBaseAsync( DisassociateAgentKnowledgeBaseRequest disassociateAgentKnowledgeBaseRequest); /** *

* Disassociates a knowledge base from an agent. *

* * @param disassociateAgentKnowledgeBaseRequest * @param 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. * @return A Java Future containing the result of the DisassociateAgentKnowledgeBase operation returned by the * service. * @sample AWSBedrockAgentAsyncHandler.DisassociateAgentKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future disassociateAgentKnowledgeBaseAsync( DisassociateAgentKnowledgeBaseRequest disassociateAgentKnowledgeBaseRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about an agent. *

* * @param getAgentRequest * @return A Java Future containing the result of the GetAgent operation returned by the service. * @sample AWSBedrockAgentAsync.GetAgent * @see AWS API * Documentation */ java.util.concurrent.Future getAgentAsync(GetAgentRequest getAgentRequest); /** *

* Gets information about an agent. *

* * @param getAgentRequest * @param 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. * @return A Java Future containing the result of the GetAgent operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetAgent * @see AWS API * Documentation */ java.util.concurrent.Future getAgentAsync(GetAgentRequest getAgentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about an action group for an agent. *

* * @param getAgentActionGroupRequest * @return A Java Future containing the result of the GetAgentActionGroup operation returned by the service. * @sample AWSBedrockAgentAsync.GetAgentActionGroup * @see AWS API Documentation */ java.util.concurrent.Future getAgentActionGroupAsync(GetAgentActionGroupRequest getAgentActionGroupRequest); /** *

* Gets information about an action group for an agent. *

* * @param getAgentActionGroupRequest * @param 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. * @return A Java Future containing the result of the GetAgentActionGroup operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetAgentActionGroup * @see AWS API Documentation */ java.util.concurrent.Future getAgentActionGroupAsync(GetAgentActionGroupRequest getAgentActionGroupRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about an alias of an agent. *

* * @param getAgentAliasRequest * @return A Java Future containing the result of the GetAgentAlias operation returned by the service. * @sample AWSBedrockAgentAsync.GetAgentAlias * @see AWS * API Documentation */ java.util.concurrent.Future getAgentAliasAsync(GetAgentAliasRequest getAgentAliasRequest); /** *

* Gets information about an alias of an agent. *

* * @param getAgentAliasRequest * @param 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. * @return A Java Future containing the result of the GetAgentAlias operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetAgentAlias * @see AWS * API Documentation */ java.util.concurrent.Future getAgentAliasAsync(GetAgentAliasRequest getAgentAliasRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about a knowledge base associated with an agent. *

* * @param getAgentKnowledgeBaseRequest * @return A Java Future containing the result of the GetAgentKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsync.GetAgentKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future getAgentKnowledgeBaseAsync(GetAgentKnowledgeBaseRequest getAgentKnowledgeBaseRequest); /** *

* Gets information about a knowledge base associated with an agent. *

* * @param getAgentKnowledgeBaseRequest * @param 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. * @return A Java Future containing the result of the GetAgentKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetAgentKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future getAgentKnowledgeBaseAsync(GetAgentKnowledgeBaseRequest getAgentKnowledgeBaseRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets details about a version of an agent. *

* * @param getAgentVersionRequest * @return A Java Future containing the result of the GetAgentVersion operation returned by the service. * @sample AWSBedrockAgentAsync.GetAgentVersion * @see AWS * API Documentation */ java.util.concurrent.Future getAgentVersionAsync(GetAgentVersionRequest getAgentVersionRequest); /** *

* Gets details about a version of an agent. *

* * @param getAgentVersionRequest * @param 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. * @return A Java Future containing the result of the GetAgentVersion operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetAgentVersion * @see AWS * API Documentation */ java.util.concurrent.Future getAgentVersionAsync(GetAgentVersionRequest getAgentVersionRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about a data source. *

* * @param getDataSourceRequest * @return A Java Future containing the result of the GetDataSource operation returned by the service. * @sample AWSBedrockAgentAsync.GetDataSource * @see AWS * API Documentation */ java.util.concurrent.Future getDataSourceAsync(GetDataSourceRequest getDataSourceRequest); /** *

* Gets information about a data source. *

* * @param getDataSourceRequest * @param 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. * @return A Java Future containing the result of the GetDataSource operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetDataSource * @see AWS * API Documentation */ java.util.concurrent.Future getDataSourceAsync(GetDataSourceRequest getDataSourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about a ingestion job, in which a data source is added to a knowledge base. *

* * @param getIngestionJobRequest * @return A Java Future containing the result of the GetIngestionJob operation returned by the service. * @sample AWSBedrockAgentAsync.GetIngestionJob * @see AWS * API Documentation */ java.util.concurrent.Future getIngestionJobAsync(GetIngestionJobRequest getIngestionJobRequest); /** *

* Gets information about a ingestion job, in which a data source is added to a knowledge base. *

* * @param getIngestionJobRequest * @param 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. * @return A Java Future containing the result of the GetIngestionJob operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetIngestionJob * @see AWS * API Documentation */ java.util.concurrent.Future getIngestionJobAsync(GetIngestionJobRequest getIngestionJobRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Gets information about a knoweldge base. *

* * @param getKnowledgeBaseRequest * @return A Java Future containing the result of the GetKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsync.GetKnowledgeBase * @see AWS * API Documentation */ java.util.concurrent.Future getKnowledgeBaseAsync(GetKnowledgeBaseRequest getKnowledgeBaseRequest); /** *

* Gets information about a knoweldge base. *

* * @param getKnowledgeBaseRequest * @param 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. * @return A Java Future containing the result of the GetKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetKnowledgeBase * @see AWS * API Documentation */ java.util.concurrent.Future getKnowledgeBaseAsync(GetKnowledgeBaseRequest getKnowledgeBaseRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the action groups for an agent and information about each one. *

* * @param listAgentActionGroupsRequest * @return A Java Future containing the result of the ListAgentActionGroups operation returned by the service. * @sample AWSBedrockAgentAsync.ListAgentActionGroups * @see AWS API Documentation */ java.util.concurrent.Future listAgentActionGroupsAsync(ListAgentActionGroupsRequest listAgentActionGroupsRequest); /** *

* Lists the action groups for an agent and information about each one. *

* * @param listAgentActionGroupsRequest * @param 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. * @return A Java Future containing the result of the ListAgentActionGroups operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListAgentActionGroups * @see AWS API Documentation */ java.util.concurrent.Future listAgentActionGroupsAsync(ListAgentActionGroupsRequest listAgentActionGroupsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the aliases of an agent and information about each one. *

* * @param listAgentAliasesRequest * @return A Java Future containing the result of the ListAgentAliases operation returned by the service. * @sample AWSBedrockAgentAsync.ListAgentAliases * @see AWS * API Documentation */ java.util.concurrent.Future listAgentAliasesAsync(ListAgentAliasesRequest listAgentAliasesRequest); /** *

* Lists the aliases of an agent and information about each one. *

* * @param listAgentAliasesRequest * @param 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. * @return A Java Future containing the result of the ListAgentAliases operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListAgentAliases * @see AWS * API Documentation */ java.util.concurrent.Future listAgentAliasesAsync(ListAgentAliasesRequest listAgentAliasesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists knowledge bases associated with an agent and information about each one. *

* * @param listAgentKnowledgeBasesRequest * @return A Java Future containing the result of the ListAgentKnowledgeBases operation returned by the service. * @sample AWSBedrockAgentAsync.ListAgentKnowledgeBases * @see AWS API Documentation */ java.util.concurrent.Future listAgentKnowledgeBasesAsync(ListAgentKnowledgeBasesRequest listAgentKnowledgeBasesRequest); /** *

* Lists knowledge bases associated with an agent and information about each one. *

* * @param listAgentKnowledgeBasesRequest * @param 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. * @return A Java Future containing the result of the ListAgentKnowledgeBases operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListAgentKnowledgeBases * @see AWS API Documentation */ java.util.concurrent.Future listAgentKnowledgeBasesAsync(ListAgentKnowledgeBasesRequest listAgentKnowledgeBasesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the versions of an agent and information about each version. *

* * @param listAgentVersionsRequest * @return A Java Future containing the result of the ListAgentVersions operation returned by the service. * @sample AWSBedrockAgentAsync.ListAgentVersions * @see AWS API Documentation */ java.util.concurrent.Future listAgentVersionsAsync(ListAgentVersionsRequest listAgentVersionsRequest); /** *

* Lists the versions of an agent and information about each version. *

* * @param listAgentVersionsRequest * @param 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. * @return A Java Future containing the result of the ListAgentVersions operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListAgentVersions * @see AWS API Documentation */ java.util.concurrent.Future listAgentVersionsAsync(ListAgentVersionsRequest listAgentVersionsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the agents belonging to an account and information about each agent. *

* * @param listAgentsRequest * @return A Java Future containing the result of the ListAgents operation returned by the service. * @sample AWSBedrockAgentAsync.ListAgents * @see AWS API * Documentation */ java.util.concurrent.Future listAgentsAsync(ListAgentsRequest listAgentsRequest); /** *

* Lists the agents belonging to an account and information about each agent. *

* * @param listAgentsRequest * @param 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. * @return A Java Future containing the result of the ListAgents operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListAgents * @see AWS API * Documentation */ java.util.concurrent.Future listAgentsAsync(ListAgentsRequest listAgentsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the data sources in a knowledge base and information about each one. *

* * @param listDataSourcesRequest * @return A Java Future containing the result of the ListDataSources operation returned by the service. * @sample AWSBedrockAgentAsync.ListDataSources * @see AWS * API Documentation */ java.util.concurrent.Future listDataSourcesAsync(ListDataSourcesRequest listDataSourcesRequest); /** *

* Lists the data sources in a knowledge base and information about each one. *

* * @param listDataSourcesRequest * @param 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. * @return A Java Future containing the result of the ListDataSources operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListDataSources * @see AWS * API Documentation */ java.util.concurrent.Future listDataSourcesAsync(ListDataSourcesRequest listDataSourcesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the ingestion jobs for a data source and information about each of them. *

* * @param listIngestionJobsRequest * @return A Java Future containing the result of the ListIngestionJobs operation returned by the service. * @sample AWSBedrockAgentAsync.ListIngestionJobs * @see AWS API Documentation */ java.util.concurrent.Future listIngestionJobsAsync(ListIngestionJobsRequest listIngestionJobsRequest); /** *

* Lists the ingestion jobs for a data source and information about each of them. *

* * @param listIngestionJobsRequest * @param 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. * @return A Java Future containing the result of the ListIngestionJobs operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListIngestionJobs * @see AWS API Documentation */ java.util.concurrent.Future listIngestionJobsAsync(ListIngestionJobsRequest listIngestionJobsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Lists the knowledge bases in an account and information about each of them. *

* * @param listKnowledgeBasesRequest * @return A Java Future containing the result of the ListKnowledgeBases operation returned by the service. * @sample AWSBedrockAgentAsync.ListKnowledgeBases * @see AWS API Documentation */ java.util.concurrent.Future listKnowledgeBasesAsync(ListKnowledgeBasesRequest listKnowledgeBasesRequest); /** *

* Lists the knowledge bases in an account and information about each of them. *

* * @param listKnowledgeBasesRequest * @param 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. * @return A Java Future containing the result of the ListKnowledgeBases operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListKnowledgeBases * @see AWS API Documentation */ java.util.concurrent.Future listKnowledgeBasesAsync(ListKnowledgeBasesRequest listKnowledgeBasesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* List all the tags for the resource you specify. *

* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSBedrockAgentAsync.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest); /** *

* List all the tags for the resource you specify. *

* * @param listTagsForResourceRequest * @param 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. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future listTagsForResourceAsync(ListTagsForResourceRequest listTagsForResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Creates a DRAFT version of the agent that can be used for internal testing. *

* * @param prepareAgentRequest * @return A Java Future containing the result of the PrepareAgent operation returned by the service. * @sample AWSBedrockAgentAsync.PrepareAgent * @see AWS API * Documentation */ java.util.concurrent.Future prepareAgentAsync(PrepareAgentRequest prepareAgentRequest); /** *

* Creates a DRAFT version of the agent that can be used for internal testing. *

* * @param prepareAgentRequest * @param 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. * @return A Java Future containing the result of the PrepareAgent operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.PrepareAgent * @see AWS API * Documentation */ java.util.concurrent.Future prepareAgentAsync(PrepareAgentRequest prepareAgentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Begins an ingestion job, in which a data source is added to a knowledge base. *

* * @param startIngestionJobRequest * @return A Java Future containing the result of the StartIngestionJob operation returned by the service. * @sample AWSBedrockAgentAsync.StartIngestionJob * @see AWS API Documentation */ java.util.concurrent.Future startIngestionJobAsync(StartIngestionJobRequest startIngestionJobRequest); /** *

* Begins an ingestion job, in which a data source is added to a knowledge base. *

* * @param startIngestionJobRequest * @param 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. * @return A Java Future containing the result of the StartIngestionJob operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.StartIngestionJob * @see AWS API Documentation */ java.util.concurrent.Future startIngestionJobAsync(StartIngestionJobRequest startIngestionJobRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Associate tags with a resource. For more information, see Tagging resources in the * Amazon Bedrock User Guide. *

* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSBedrockAgentAsync.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest); /** *

* Associate tags with a resource. For more information, see Tagging resources in the * Amazon Bedrock User Guide. *

* * @param tagResourceRequest * @param 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. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.TagResource * @see AWS API * Documentation */ java.util.concurrent.Future tagResourceAsync(TagResourceRequest tagResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Remove tags from a resource. *

* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSBedrockAgentAsync.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest); /** *

* Remove tags from a resource. *

* * @param untagResourceRequest * @param 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. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UntagResource * @see AWS * API Documentation */ java.util.concurrent.Future untagResourceAsync(UntagResourceRequest untagResourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Updates the configuration of an agent. *

* * @param updateAgentRequest * @return A Java Future containing the result of the UpdateAgent operation returned by the service. * @sample AWSBedrockAgentAsync.UpdateAgent * @see AWS API * Documentation */ java.util.concurrent.Future updateAgentAsync(UpdateAgentRequest updateAgentRequest); /** *

* Updates the configuration of an agent. *

* * @param updateAgentRequest * @param 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. * @return A Java Future containing the result of the UpdateAgent operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdateAgent * @see AWS API * Documentation */ java.util.concurrent.Future updateAgentAsync(UpdateAgentRequest updateAgentRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Updates the configuration for an action group for an agent. *

* * @param updateAgentActionGroupRequest * @return A Java Future containing the result of the UpdateAgentActionGroup operation returned by the service. * @sample AWSBedrockAgentAsync.UpdateAgentActionGroup * @see AWS API Documentation */ java.util.concurrent.Future updateAgentActionGroupAsync(UpdateAgentActionGroupRequest updateAgentActionGroupRequest); /** *

* Updates the configuration for an action group for an agent. *

* * @param updateAgentActionGroupRequest * @param 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. * @return A Java Future containing the result of the UpdateAgentActionGroup operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdateAgentActionGroup * @see AWS API Documentation */ java.util.concurrent.Future updateAgentActionGroupAsync(UpdateAgentActionGroupRequest updateAgentActionGroupRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Updates configurations for an alias of an agent. *

* * @param updateAgentAliasRequest * @return A Java Future containing the result of the UpdateAgentAlias operation returned by the service. * @sample AWSBedrockAgentAsync.UpdateAgentAlias * @see AWS * API Documentation */ java.util.concurrent.Future updateAgentAliasAsync(UpdateAgentAliasRequest updateAgentAliasRequest); /** *

* Updates configurations for an alias of an agent. *

* * @param updateAgentAliasRequest * @param 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. * @return A Java Future containing the result of the UpdateAgentAlias operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdateAgentAlias * @see AWS * API Documentation */ java.util.concurrent.Future updateAgentAliasAsync(UpdateAgentAliasRequest updateAgentAliasRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Updates the configuration for a knowledge base that has been associated with an agent. *

* * @param updateAgentKnowledgeBaseRequest * @return A Java Future containing the result of the UpdateAgentKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsync.UpdateAgentKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future updateAgentKnowledgeBaseAsync(UpdateAgentKnowledgeBaseRequest updateAgentKnowledgeBaseRequest); /** *

* Updates the configuration for a knowledge base that has been associated with an agent. *

* * @param updateAgentKnowledgeBaseRequest * @param 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. * @return A Java Future containing the result of the UpdateAgentKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdateAgentKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future updateAgentKnowledgeBaseAsync(UpdateAgentKnowledgeBaseRequest updateAgentKnowledgeBaseRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Updates configurations for a data source. *

* *

* You can't change the chunkingConfiguration after you create the data source. Specify the existing * chunkingConfiguration. *

*
* * @param updateDataSourceRequest * @return A Java Future containing the result of the UpdateDataSource operation returned by the service. * @sample AWSBedrockAgentAsync.UpdateDataSource * @see AWS * API Documentation */ java.util.concurrent.Future updateDataSourceAsync(UpdateDataSourceRequest updateDataSourceRequest); /** *

* Updates configurations for a data source. *

* *

* You can't change the chunkingConfiguration after you create the data source. Specify the existing * chunkingConfiguration. *

*
* * @param updateDataSourceRequest * @param 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. * @return A Java Future containing the result of the UpdateDataSource operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdateDataSource * @see AWS * API Documentation */ java.util.concurrent.Future updateDataSourceAsync(UpdateDataSourceRequest updateDataSourceRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* 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. *

* * @param updateKnowledgeBaseRequest * @return A Java Future containing the result of the UpdateKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsync.UpdateKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future updateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest updateKnowledgeBaseRequest); /** *

* 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. *

* * @param updateKnowledgeBaseRequest * @param 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. * @return A Java Future containing the result of the UpdateKnowledgeBase operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdateKnowledgeBase * @see AWS API Documentation */ java.util.concurrent.Future updateKnowledgeBaseAsync(UpdateKnowledgeBaseRequest updateKnowledgeBaseRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy