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

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

Go to download

The AWS Java SDK for Agents for Amazon Bedrock module holds the client classes that are used for communicating with Agents for Amazon Bedrock Service

There is a newer version: 1.12.780
Show newest version
/*
 * 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 enable your agent to retain conversational context across multiple sessions, include a * memoryConfiguration object. For more information, see Configure memory. *

    *
  • *
  • *

    * 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 enable your agent to retain conversational context across multiple sessions, include a * memoryConfiguration object. For more information, see Configure memory. *

    *
  • *
  • *

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

*

* To allow your agent to generate, run, and troubleshoot code when trying to complete a task, add an action group * with the parentActionGroupSignature field set to AMAZON.CodeInterpreter. *

*

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

*

* To allow your agent to generate, run, and troubleshoot code when trying to complete a task, add an action group * with the parentActionGroupSignature field set to AMAZON.CodeInterpreter. *

*

* 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); /** *

* Creates a data source connector for a knowledge base. *

* *

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

*
* * @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); /** *

* Creates a data source connector for a knowledge base. *

* *

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

*
* * @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 prompt flow that you can use to send an input through various steps to yield an output. Configure * nodes, each of which corresponds to a step of the flow, and create connections between the nodes to create paths * to different outputs. For more information, see How it works and Create a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param createFlowRequest * @return A Java Future containing the result of the CreateFlow operation returned by the service. * @sample AWSBedrockAgentAsync.CreateFlow * @see AWS API * Documentation */ java.util.concurrent.Future createFlowAsync(CreateFlowRequest createFlowRequest); /** *

* Creates a prompt flow that you can use to send an input through various steps to yield an output. Configure * nodes, each of which corresponds to a step of the flow, and create connections between the nodes to create paths * to different outputs. For more information, see How it works and Create a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param createFlowRequest * @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 CreateFlow operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreateFlow * @see AWS API * Documentation */ java.util.concurrent.Future createFlowAsync(CreateFlowRequest createFlowRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Creates an alias of a flow for deployment. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param createFlowAliasRequest * @return A Java Future containing the result of the CreateFlowAlias operation returned by the service. * @sample AWSBedrockAgentAsync.CreateFlowAlias * @see AWS * API Documentation */ java.util.concurrent.Future createFlowAliasAsync(CreateFlowAliasRequest createFlowAliasRequest); /** *

* Creates an alias of a flow for deployment. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param createFlowAliasRequest * @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 CreateFlowAlias operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreateFlowAlias * @see AWS * API Documentation */ java.util.concurrent.Future createFlowAliasAsync(CreateFlowAliasRequest createFlowAliasRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Creates a version of the flow that you can deploy. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param createFlowVersionRequest * @return A Java Future containing the result of the CreateFlowVersion operation returned by the service. * @sample AWSBedrockAgentAsync.CreateFlowVersion * @see AWS API Documentation */ java.util.concurrent.Future createFlowVersionAsync(CreateFlowVersionRequest createFlowVersionRequest); /** *

* Creates a version of the flow that you can deploy. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param createFlowVersionRequest * @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 CreateFlowVersion operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreateFlowVersion * @see AWS API Documentation */ java.util.concurrent.Future createFlowVersionAsync(CreateFlowVersionRequest createFlowVersionRequest, 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); /** *

* Creates a prompt in your prompt library that you can add to a flow. For more information, see Prompt management in Amazon * Bedrock, Create * a prompt using Prompt management and Prompt flows in Amazon Bedrock in the * Amazon Bedrock User Guide. *

* * @param createPromptRequest * @return A Java Future containing the result of the CreatePrompt operation returned by the service. * @sample AWSBedrockAgentAsync.CreatePrompt * @see AWS API * Documentation */ java.util.concurrent.Future createPromptAsync(CreatePromptRequest createPromptRequest); /** *

* Creates a prompt in your prompt library that you can add to a flow. For more information, see Prompt management in Amazon * Bedrock, Create * a prompt using Prompt management and Prompt flows in Amazon Bedrock in the * Amazon Bedrock User Guide. *

* * @param createPromptRequest * @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 CreatePrompt operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreatePrompt * @see AWS API * Documentation */ java.util.concurrent.Future createPromptAsync(CreatePromptRequest createPromptRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Creates a static snapshot of your prompt that can be deployed to production. For more information, see Deploy prompts using * Prompt management by creating versions in the Amazon Bedrock User Guide. *

* * @param createPromptVersionRequest * @return A Java Future containing the result of the CreatePromptVersion operation returned by the service. * @sample AWSBedrockAgentAsync.CreatePromptVersion * @see AWS API Documentation */ java.util.concurrent.Future createPromptVersionAsync(CreatePromptVersionRequest createPromptVersionRequest); /** *

* Creates a static snapshot of your prompt that can be deployed to production. For more information, see Deploy prompts using * Prompt management by creating versions in the Amazon Bedrock User Guide. *

* * @param createPromptVersionRequest * @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 CreatePromptVersion operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.CreatePromptVersion * @see AWS API Documentation */ java.util.concurrent.Future createPromptVersionAsync(CreatePromptVersionRequest createPromptVersionRequest, 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 flow. *

* * @param deleteFlowRequest * @return A Java Future containing the result of the DeleteFlow operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteFlow * @see AWS API * Documentation */ java.util.concurrent.Future deleteFlowAsync(DeleteFlowRequest deleteFlowRequest); /** *

* Deletes a flow. *

* * @param deleteFlowRequest * @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 DeleteFlow operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteFlow * @see AWS API * Documentation */ java.util.concurrent.Future deleteFlowAsync(DeleteFlowRequest deleteFlowRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes an alias of a flow. *

* * @param deleteFlowAliasRequest * @return A Java Future containing the result of the DeleteFlowAlias operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteFlowAlias * @see AWS * API Documentation */ java.util.concurrent.Future deleteFlowAliasAsync(DeleteFlowAliasRequest deleteFlowAliasRequest); /** *

* Deletes an alias of a flow. *

* * @param deleteFlowAliasRequest * @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 DeleteFlowAlias operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteFlowAlias * @see AWS * API Documentation */ java.util.concurrent.Future deleteFlowAliasAsync(DeleteFlowAliasRequest deleteFlowAliasRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Deletes a version of a flow. *

* * @param deleteFlowVersionRequest * @return A Java Future containing the result of the DeleteFlowVersion operation returned by the service. * @sample AWSBedrockAgentAsync.DeleteFlowVersion * @see AWS API Documentation */ java.util.concurrent.Future deleteFlowVersionAsync(DeleteFlowVersionRequest deleteFlowVersionRequest); /** *

* Deletes a version of a flow. *

* * @param deleteFlowVersionRequest * @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 DeleteFlowVersion operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeleteFlowVersion * @see AWS API Documentation */ java.util.concurrent.Future deleteFlowVersionAsync(DeleteFlowVersionRequest deleteFlowVersionRequest, 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); /** *

* Deletes a prompt or a prompt version from the Prompt management tool. For more information, see Delete prompts from the Prompt management tool and Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User Guide. *

* * @param deletePromptRequest * @return A Java Future containing the result of the DeletePrompt operation returned by the service. * @sample AWSBedrockAgentAsync.DeletePrompt * @see AWS API * Documentation */ java.util.concurrent.Future deletePromptAsync(DeletePromptRequest deletePromptRequest); /** *

* Deletes a prompt or a prompt version from the Prompt management tool. For more information, see Delete prompts from the Prompt management tool and Delete a version of a prompt from the Prompt management tool in the Amazon Bedrock User Guide. *

* * @param deletePromptRequest * @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 DeletePrompt operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.DeletePrompt * @see AWS API * Documentation */ java.util.concurrent.Future deletePromptAsync(DeletePromptRequest deletePromptRequest, 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); /** *

* Retrieves information about a flow. For more information, see Manage a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param getFlowRequest * @return A Java Future containing the result of the GetFlow operation returned by the service. * @sample AWSBedrockAgentAsync.GetFlow * @see AWS API * Documentation */ java.util.concurrent.Future getFlowAsync(GetFlowRequest getFlowRequest); /** *

* Retrieves information about a flow. For more information, see Manage a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param getFlowRequest * @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 GetFlow operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetFlow * @see AWS API * Documentation */ java.util.concurrent.Future getFlowAsync(GetFlowRequest getFlowRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Retrieves information about a flow. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param getFlowAliasRequest * @return A Java Future containing the result of the GetFlowAlias operation returned by the service. * @sample AWSBedrockAgentAsync.GetFlowAlias * @see AWS API * Documentation */ java.util.concurrent.Future getFlowAliasAsync(GetFlowAliasRequest getFlowAliasRequest); /** *

* Retrieves information about a flow. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param getFlowAliasRequest * @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 GetFlowAlias operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetFlowAlias * @see AWS API * Documentation */ java.util.concurrent.Future getFlowAliasAsync(GetFlowAliasRequest getFlowAliasRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Retrieves information about a version of a flow. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param getFlowVersionRequest * @return A Java Future containing the result of the GetFlowVersion operation returned by the service. * @sample AWSBedrockAgentAsync.GetFlowVersion * @see AWS * API Documentation */ java.util.concurrent.Future getFlowVersionAsync(GetFlowVersionRequest getFlowVersionRequest); /** *

* Retrieves information about a version of a flow. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param getFlowVersionRequest * @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 GetFlowVersion operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetFlowVersion * @see AWS * API Documentation */ java.util.concurrent.Future getFlowVersionAsync(GetFlowVersionRequest getFlowVersionRequest, 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); /** *

* Retrieves information about a prompt or a version of it. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide. *

* * @param getPromptRequest * @return A Java Future containing the result of the GetPrompt operation returned by the service. * @sample AWSBedrockAgentAsync.GetPrompt * @see AWS API * Documentation */ java.util.concurrent.Future getPromptAsync(GetPromptRequest getPromptRequest); /** *

* Retrieves information about a prompt or a version of it. For more information, see View information about prompts using Prompt management and View information about a version of your prompt in the Amazon Bedrock User Guide. *

* * @param getPromptRequest * @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 GetPrompt operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.GetPrompt * @see AWS API * Documentation */ java.util.concurrent.Future getPromptAsync(GetPromptRequest getPromptRequest, 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); /** *

* Returns a list of aliases for a flow. *

* * @param listFlowAliasesRequest * @return A Java Future containing the result of the ListFlowAliases operation returned by the service. * @sample AWSBedrockAgentAsync.ListFlowAliases * @see AWS * API Documentation */ java.util.concurrent.Future listFlowAliasesAsync(ListFlowAliasesRequest listFlowAliasesRequest); /** *

* Returns a list of aliases for a flow. *

* * @param listFlowAliasesRequest * @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 ListFlowAliases operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListFlowAliases * @see AWS * API Documentation */ java.util.concurrent.Future listFlowAliasesAsync(ListFlowAliasesRequest listFlowAliasesRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Returns a list of information about each flow. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param listFlowVersionsRequest * @return A Java Future containing the result of the ListFlowVersions operation returned by the service. * @sample AWSBedrockAgentAsync.ListFlowVersions * @see AWS * API Documentation */ java.util.concurrent.Future listFlowVersionsAsync(ListFlowVersionsRequest listFlowVersionsRequest); /** *

* Returns a list of information about each flow. For more information, see Deploy a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param listFlowVersionsRequest * @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 ListFlowVersions operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListFlowVersions * @see AWS * API Documentation */ java.util.concurrent.Future listFlowVersionsAsync(ListFlowVersionsRequest listFlowVersionsRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Returns a list of flows and information about each flow. For more information, see Manage a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param listFlowsRequest * @return A Java Future containing the result of the ListFlows operation returned by the service. * @sample AWSBedrockAgentAsync.ListFlows * @see AWS API * Documentation */ java.util.concurrent.Future listFlowsAsync(ListFlowsRequest listFlowsRequest); /** *

* Returns a list of flows and information about each flow. For more information, see Manage a flow in Amazon Bedrock * in the Amazon Bedrock User Guide. *

* * @param listFlowsRequest * @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 ListFlows operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListFlows * @see AWS API * Documentation */ java.util.concurrent.Future listFlowsAsync(ListFlowsRequest listFlowsRequest, 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); /** *

* Returns a list of prompts from the Prompt management tool and information about each prompt. For more * information, see View information about prompts using Prompt management in the Amazon Bedrock User Guide. *

* * @param listPromptsRequest * @return A Java Future containing the result of the ListPrompts operation returned by the service. * @sample AWSBedrockAgentAsync.ListPrompts * @see AWS API * Documentation */ java.util.concurrent.Future listPromptsAsync(ListPromptsRequest listPromptsRequest); /** *

* Returns a list of prompts from the Prompt management tool and information about each prompt. For more * information, see View information about prompts using Prompt management in the Amazon Bedrock User Guide. *

* * @param listPromptsRequest * @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 ListPrompts operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.ListPrompts * @see AWS API * Documentation */ java.util.concurrent.Future listPromptsAsync(ListPromptsRequest listPromptsRequest, 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); /** *

* Prepares the DRAFT version of a flow so that it can be invoked. For more information, see Test a flow in Amazon Bedrock in * the Amazon Bedrock User Guide. *

* * @param prepareFlowRequest * @return A Java Future containing the result of the PrepareFlow operation returned by the service. * @sample AWSBedrockAgentAsync.PrepareFlow * @see AWS API * Documentation */ java.util.concurrent.Future prepareFlowAsync(PrepareFlowRequest prepareFlowRequest); /** *

* Prepares the DRAFT version of a flow so that it can be invoked. For more information, see Test a flow in Amazon Bedrock in * the Amazon Bedrock User Guide. *

* * @param prepareFlowRequest * @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 PrepareFlow operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.PrepareFlow * @see AWS API * Documentation */ java.util.concurrent.Future prepareFlowAsync(PrepareFlowRequest prepareFlowRequest, 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 the configurations for a data source connector. *

* *

* You can't change the chunkingConfiguration after you create the data source connector. 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 the configurations for a data source connector. *

* *

* You can't change the chunkingConfiguration after you create the data source connector. 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); /** *

* Modifies a flow. Include both fields that you want to keep and fields that you want to change. For more * information, see How it * works and Create a flow in * Amazon Bedrock in the Amazon Bedrock User Guide. *

* * @param updateFlowRequest * @return A Java Future containing the result of the UpdateFlow operation returned by the service. * @sample AWSBedrockAgentAsync.UpdateFlow * @see AWS API * Documentation */ java.util.concurrent.Future updateFlowAsync(UpdateFlowRequest updateFlowRequest); /** *

* Modifies a flow. Include both fields that you want to keep and fields that you want to change. For more * information, see How it * works and Create a flow in * Amazon Bedrock in the Amazon Bedrock User Guide. *

* * @param updateFlowRequest * @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 UpdateFlow operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdateFlow * @see AWS API * Documentation */ java.util.concurrent.Future updateFlowAsync(UpdateFlowRequest updateFlowRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); /** *

* Modifies the alias of a flow. Include both fields that you want to keep and ones that you want to change. For * more information, see Deploy a * flow in Amazon Bedrock in the Amazon Bedrock User Guide. *

* * @param updateFlowAliasRequest * @return A Java Future containing the result of the UpdateFlowAlias operation returned by the service. * @sample AWSBedrockAgentAsync.UpdateFlowAlias * @see AWS * API Documentation */ java.util.concurrent.Future updateFlowAliasAsync(UpdateFlowAliasRequest updateFlowAliasRequest); /** *

* Modifies the alias of a flow. Include both fields that you want to keep and ones that you want to change. For * more information, see Deploy a * flow in Amazon Bedrock in the Amazon Bedrock User Guide. *

* * @param updateFlowAliasRequest * @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 UpdateFlowAlias operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdateFlowAlias * @see AWS * API Documentation */ java.util.concurrent.Future updateFlowAliasAsync(UpdateFlowAliasRequest updateFlowAliasRequest, 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); /** *

* Modifies a prompt in your prompt library. Include both fields that you want to keep and fields that you want to * replace. For more information, see Prompt management in Amazon * Bedrock and Edit * prompts in your prompt library in the Amazon Bedrock User Guide. *

* * @param updatePromptRequest * @return A Java Future containing the result of the UpdatePrompt operation returned by the service. * @sample AWSBedrockAgentAsync.UpdatePrompt * @see AWS API * Documentation */ java.util.concurrent.Future updatePromptAsync(UpdatePromptRequest updatePromptRequest); /** *

* Modifies a prompt in your prompt library. Include both fields that you want to keep and fields that you want to * replace. For more information, see Prompt management in Amazon * Bedrock and Edit * prompts in your prompt library in the Amazon Bedrock User Guide. *

* * @param updatePromptRequest * @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 UpdatePrompt operation returned by the service. * @sample AWSBedrockAgentAsyncHandler.UpdatePrompt * @see AWS API * Documentation */ java.util.concurrent.Future updatePromptAsync(UpdatePromptRequest updatePromptRequest, com.amazonaws.handlers.AsyncHandler asyncHandler); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy