@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAWSBedrockAgent extends Object implements AWSBedrockAgent
AWSBedrockAgent. Convenient method forms pass through to the corresponding
overload that takes a request object, which throws an UnsupportedOperationException.ENDPOINT_PREFIX| Modifier and Type | Method and Description |
|---|---|
AssociateAgentKnowledgeBaseResult |
associateAgentKnowledgeBase(AssociateAgentKnowledgeBaseRequest request)
Associates a knowledge base with an agent.
|
CreateAgentResult |
createAgent(CreateAgentRequest request)
Creates an agent that orchestrates interactions between foundation models, data sources, software applications,
user conversations, and APIs to carry out tasks to help customers.
|
CreateAgentActionGroupResult |
createAgentActionGroup(CreateAgentActionGroupRequest request)
Creates an action group for an agent.
|
CreateAgentAliasResult |
createAgentAlias(CreateAgentAliasRequest request)
Creates an alias of an agent that can be used to deploy the agent.
|
CreateDataSourceResult |
createDataSource(CreateDataSourceRequest request)
Creates a data source connector for a knowledge base.
|
CreateFlowResult |
createFlow(CreateFlowRequest request)
Creates a prompt flow that you can use to send an input through various steps to yield an output.
|
CreateFlowAliasResult |
createFlowAlias(CreateFlowAliasRequest request)
Creates an alias of a flow for deployment.
|
CreateFlowVersionResult |
createFlowVersion(CreateFlowVersionRequest request)
Creates a version of the flow that you can deploy.
|
CreateKnowledgeBaseResult |
createKnowledgeBase(CreateKnowledgeBaseRequest request)
Creates a knowledge base that contains data sources from which information can be queried and used by LLMs.
|
CreatePromptResult |
createPrompt(CreatePromptRequest request)
Creates a prompt in your prompt library that you can add to a flow.
|
CreatePromptVersionResult |
createPromptVersion(CreatePromptVersionRequest request)
Creates a static snapshot of your prompt that can be deployed to production.
|
DeleteAgentResult |
deleteAgent(DeleteAgentRequest request)
Deletes an agent.
|
DeleteAgentActionGroupResult |
deleteAgentActionGroup(DeleteAgentActionGroupRequest request)
Deletes an action group in an agent.
|
DeleteAgentAliasResult |
deleteAgentAlias(DeleteAgentAliasRequest request)
Deletes an alias of an agent.
|
DeleteAgentVersionResult |
deleteAgentVersion(DeleteAgentVersionRequest request)
Deletes a version of an agent.
|
DeleteDataSourceResult |
deleteDataSource(DeleteDataSourceRequest request)
Deletes a data source from a knowledge base.
|
DeleteFlowResult |
deleteFlow(DeleteFlowRequest request)
Deletes a flow.
|
DeleteFlowAliasResult |
deleteFlowAlias(DeleteFlowAliasRequest request)
Deletes an alias of a flow.
|
DeleteFlowVersionResult |
deleteFlowVersion(DeleteFlowVersionRequest request)
Deletes a version of a flow.
|
DeleteKnowledgeBaseResult |
deleteKnowledgeBase(DeleteKnowledgeBaseRequest request)
Deletes a knowledge base.
|
DeletePromptResult |
deletePrompt(DeletePromptRequest request)
Deletes a prompt or a prompt version from the Prompt management tool.
|
DisassociateAgentKnowledgeBaseResult |
disassociateAgentKnowledgeBase(DisassociateAgentKnowledgeBaseRequest request)
Disassociates a knowledge base from an agent.
|
GetAgentResult |
getAgent(GetAgentRequest request)
Gets information about an agent.
|
GetAgentActionGroupResult |
getAgentActionGroup(GetAgentActionGroupRequest request)
Gets information about an action group for an agent.
|
GetAgentAliasResult |
getAgentAlias(GetAgentAliasRequest request)
Gets information about an alias of an agent.
|
GetAgentKnowledgeBaseResult |
getAgentKnowledgeBase(GetAgentKnowledgeBaseRequest request)
Gets information about a knowledge base associated with an agent.
|
GetAgentVersionResult |
getAgentVersion(GetAgentVersionRequest request)
Gets details about a version of an agent.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful request, typically used for debugging issues
where a service isn't acting as expected.
|
GetDataSourceResult |
getDataSource(GetDataSourceRequest request)
Gets information about a data source.
|
GetFlowResult |
getFlow(GetFlowRequest request)
Retrieves information about a flow.
|
GetFlowAliasResult |
getFlowAlias(GetFlowAliasRequest request)
Retrieves information about a flow.
|
GetFlowVersionResult |
getFlowVersion(GetFlowVersionRequest request)
Retrieves information about a version of a flow.
|
GetIngestionJobResult |
getIngestionJob(GetIngestionJobRequest request)
Gets information about a ingestion job, in which a data source is added to a knowledge base.
|
GetKnowledgeBaseResult |
getKnowledgeBase(GetKnowledgeBaseRequest request)
Gets information about a knoweldge base.
|
GetPromptResult |
getPrompt(GetPromptRequest request)
Retrieves information about a prompt or a version of it.
|
ListAgentActionGroupsResult |
listAgentActionGroups(ListAgentActionGroupsRequest request)
Lists the action groups for an agent and information about each one.
|
ListAgentAliasesResult |
listAgentAliases(ListAgentAliasesRequest request)
Lists the aliases of an agent and information about each one.
|
ListAgentKnowledgeBasesResult |
listAgentKnowledgeBases(ListAgentKnowledgeBasesRequest request)
Lists knowledge bases associated with an agent and information about each one.
|
ListAgentsResult |
listAgents(ListAgentsRequest request)
Lists the agents belonging to an account and information about each agent.
|
ListAgentVersionsResult |
listAgentVersions(ListAgentVersionsRequest request)
Lists the versions of an agent and information about each version.
|
ListDataSourcesResult |
listDataSources(ListDataSourcesRequest request)
Lists the data sources in a knowledge base and information about each one.
|
ListFlowAliasesResult |
listFlowAliases(ListFlowAliasesRequest request)
Returns a list of aliases for a flow.
|
ListFlowsResult |
listFlows(ListFlowsRequest request)
Returns a list of flows and information about each flow.
|
ListFlowVersionsResult |
listFlowVersions(ListFlowVersionsRequest request)
Returns a list of information about each flow.
|
ListIngestionJobsResult |
listIngestionJobs(ListIngestionJobsRequest request)
Lists the ingestion jobs for a data source and information about each of them.
|
ListKnowledgeBasesResult |
listKnowledgeBases(ListKnowledgeBasesRequest request)
Lists the knowledge bases in an account and information about each of them.
|
ListPromptsResult |
listPrompts(ListPromptsRequest request)
Returns a list of prompts from the Prompt management tool and information about each prompt.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
List all the tags for the resource you specify.
|
PrepareAgentResult |
prepareAgent(PrepareAgentRequest request)
Creates a
DRAFT version of the agent that can be used for internal testing. |
PrepareFlowResult |
prepareFlow(PrepareFlowRequest request)
Prepares the
DRAFT version of a flow so that it can be invoked. |
void |
shutdown()
Shuts down this client object, releasing any resources that might be held open.
|
StartIngestionJobResult |
startIngestionJob(StartIngestionJobRequest request)
Begins an ingestion job, in which a data source is added to a knowledge base.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Associate tags with a resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Remove tags from a resource.
|
UpdateAgentResult |
updateAgent(UpdateAgentRequest request)
Updates the configuration of an agent.
|
UpdateAgentActionGroupResult |
updateAgentActionGroup(UpdateAgentActionGroupRequest request)
Updates the configuration for an action group for an agent.
|
UpdateAgentAliasResult |
updateAgentAlias(UpdateAgentAliasRequest request)
Updates configurations for an alias of an agent.
|
UpdateAgentKnowledgeBaseResult |
updateAgentKnowledgeBase(UpdateAgentKnowledgeBaseRequest request)
Updates the configuration for a knowledge base that has been associated with an agent.
|
UpdateDataSourceResult |
updateDataSource(UpdateDataSourceRequest request)
Updates the configurations for a data source connector.
|
UpdateFlowResult |
updateFlow(UpdateFlowRequest request)
Modifies a flow.
|
UpdateFlowAliasResult |
updateFlowAlias(UpdateFlowAliasRequest request)
Modifies the alias of a flow.
|
UpdateKnowledgeBaseResult |
updateKnowledgeBase(UpdateKnowledgeBaseRequest request)
Updates the configuration of a knowledge base with the fields that you specify.
|
UpdatePromptResult |
updatePrompt(UpdatePromptRequest request)
Modifies a prompt in your prompt library.
|
public AssociateAgentKnowledgeBaseResult associateAgentKnowledgeBase(AssociateAgentKnowledgeBaseRequest request)
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.
associateAgentKnowledgeBase in interface AWSBedrockAgentpublic CreateAgentResult createAgent(CreateAgentRequest request)
AWSBedrockAgentCreates 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.
createAgent in interface AWSBedrockAgentpublic CreateAgentActionGroupResult createAgentActionGroup(CreateAgentActionGroupRequest request)
AWSBedrockAgentCreates 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.
createAgentActionGroup in interface AWSBedrockAgentpublic CreateAgentAliasResult createAgentAlias(CreateAgentAliasRequest request)
AWSBedrockAgentCreates an alias of an agent that can be used to deploy the agent.
createAgentAlias in interface AWSBedrockAgentpublic CreateDataSourceResult createDataSource(CreateDataSourceRequest request)
AWSBedrockAgentCreates a data source connector for a knowledge base.
You can't change the chunkingConfiguration after you create the data source connector.
createDataSource in interface AWSBedrockAgentpublic CreateFlowResult createFlow(CreateFlowRequest request)
AWSBedrockAgentCreates 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.
createFlow in interface AWSBedrockAgentpublic CreateFlowAliasResult createFlowAlias(CreateFlowAliasRequest request)
AWSBedrockAgentCreates an alias of a flow for deployment. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
createFlowAlias in interface AWSBedrockAgentpublic CreateFlowVersionResult createFlowVersion(CreateFlowVersionRequest request)
AWSBedrockAgentCreates 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.
createFlowVersion in interface AWSBedrockAgentpublic CreateKnowledgeBaseResult createKnowledgeBase(CreateKnowledgeBaseRequest request)
AWSBedrockAgentCreates a knowledge base that contains data sources from which information can be queried and used by LLMs. To create a knowledge base, you must first set up your data sources and configure a supported vector store. For more information, see Set up your data for ingestion.
If you prefer to let Amazon Bedrock create and manage a vector store for you in Amazon OpenSearch Service, use the console. For more information, see Create a knowledge base.
Provide the name and an optional description.
Provide the Amazon Resource Name (ARN) with permissions to create a knowledge base in the roleArn
field.
Provide the embedding model to use in the embeddingModelArn field in the
knowledgeBaseConfiguration object.
Provide the configuration for your vector store in the storageConfiguration object.
For an Amazon OpenSearch Service database, use the opensearchServerlessConfiguration object. For
more information, see Create a vector store
in Amazon OpenSearch Service.
For an Amazon Aurora database, use the RdsConfiguration object. For more information, see Create a vector store
in Amazon Aurora.
For a Pinecone database, use the pineconeConfiguration object. For more information, see Create a vector
store in Pinecone.
For a Redis Enterprise Cloud database, use the redisEnterpriseCloudConfiguration object. For more
information, see Create a vector store
in Redis Enterprise Cloud.
createKnowledgeBase in interface AWSBedrockAgentpublic CreatePromptResult createPrompt(CreatePromptRequest request)
AWSBedrockAgentCreates 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.
createPrompt in interface AWSBedrockAgentpublic CreatePromptVersionResult createPromptVersion(CreatePromptVersionRequest request)
AWSBedrockAgentCreates 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.
createPromptVersion in interface AWSBedrockAgentpublic DeleteAgentResult deleteAgent(DeleteAgentRequest request)
AWSBedrockAgentDeletes an agent.
deleteAgent in interface AWSBedrockAgentpublic DeleteAgentActionGroupResult deleteAgentActionGroup(DeleteAgentActionGroupRequest request)
AWSBedrockAgentDeletes an action group in an agent.
deleteAgentActionGroup in interface AWSBedrockAgentpublic DeleteAgentAliasResult deleteAgentAlias(DeleteAgentAliasRequest request)
AWSBedrockAgentDeletes an alias of an agent.
deleteAgentAlias in interface AWSBedrockAgentpublic DeleteAgentVersionResult deleteAgentVersion(DeleteAgentVersionRequest request)
AWSBedrockAgentDeletes a version of an agent.
deleteAgentVersion in interface AWSBedrockAgentpublic DeleteDataSourceResult deleteDataSource(DeleteDataSourceRequest request)
AWSBedrockAgentDeletes a data source from a knowledge base.
deleteDataSource in interface AWSBedrockAgentpublic DeleteFlowResult deleteFlow(DeleteFlowRequest request)
AWSBedrockAgentDeletes a flow.
deleteFlow in interface AWSBedrockAgentpublic DeleteFlowAliasResult deleteFlowAlias(DeleteFlowAliasRequest request)
AWSBedrockAgentDeletes an alias of a flow.
deleteFlowAlias in interface AWSBedrockAgentpublic DeleteFlowVersionResult deleteFlowVersion(DeleteFlowVersionRequest request)
AWSBedrockAgentDeletes a version of a flow.
deleteFlowVersion in interface AWSBedrockAgentpublic DeleteKnowledgeBaseResult deleteKnowledgeBase(DeleteKnowledgeBaseRequest request)
AWSBedrockAgentDeletes 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.
deleteKnowledgeBase in interface AWSBedrockAgentpublic DeletePromptResult deletePrompt(DeletePromptRequest request)
AWSBedrockAgentDeletes 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.
deletePrompt in interface AWSBedrockAgentpublic DisassociateAgentKnowledgeBaseResult disassociateAgentKnowledgeBase(DisassociateAgentKnowledgeBaseRequest request)
AWSBedrockAgentDisassociates a knowledge base from an agent.
disassociateAgentKnowledgeBase in interface AWSBedrockAgentpublic GetAgentResult getAgent(GetAgentRequest request)
AWSBedrockAgentGets information about an agent.
getAgent in interface AWSBedrockAgentpublic GetAgentActionGroupResult getAgentActionGroup(GetAgentActionGroupRequest request)
AWSBedrockAgentGets information about an action group for an agent.
getAgentActionGroup in interface AWSBedrockAgentpublic GetAgentAliasResult getAgentAlias(GetAgentAliasRequest request)
AWSBedrockAgentGets information about an alias of an agent.
getAgentAlias in interface AWSBedrockAgentpublic GetAgentKnowledgeBaseResult getAgentKnowledgeBase(GetAgentKnowledgeBaseRequest request)
AWSBedrockAgentGets information about a knowledge base associated with an agent.
getAgentKnowledgeBase in interface AWSBedrockAgentpublic GetAgentVersionResult getAgentVersion(GetAgentVersionRequest request)
AWSBedrockAgentGets details about a version of an agent.
getAgentVersion in interface AWSBedrockAgentpublic GetDataSourceResult getDataSource(GetDataSourceRequest request)
AWSBedrockAgentGets information about a data source.
getDataSource in interface AWSBedrockAgentpublic GetFlowResult getFlow(GetFlowRequest request)
AWSBedrockAgentRetrieves information about a flow. For more information, see Manage a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlow in interface AWSBedrockAgentpublic GetFlowAliasResult getFlowAlias(GetFlowAliasRequest request)
AWSBedrockAgentRetrieves information about a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlowAlias in interface AWSBedrockAgentpublic GetFlowVersionResult getFlowVersion(GetFlowVersionRequest request)
AWSBedrockAgentRetrieves information about a version of a flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
getFlowVersion in interface AWSBedrockAgentpublic GetIngestionJobResult getIngestionJob(GetIngestionJobRequest request)
AWSBedrockAgentGets information about a ingestion job, in which a data source is added to a knowledge base.
getIngestionJob in interface AWSBedrockAgentpublic GetKnowledgeBaseResult getKnowledgeBase(GetKnowledgeBaseRequest request)
AWSBedrockAgentGets information about a knoweldge base.
getKnowledgeBase in interface AWSBedrockAgentpublic GetPromptResult getPrompt(GetPromptRequest request)
AWSBedrockAgentRetrieves 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.
getPrompt in interface AWSBedrockAgentpublic ListAgentActionGroupsResult listAgentActionGroups(ListAgentActionGroupsRequest request)
AWSBedrockAgentLists the action groups for an agent and information about each one.
listAgentActionGroups in interface AWSBedrockAgentpublic ListAgentAliasesResult listAgentAliases(ListAgentAliasesRequest request)
AWSBedrockAgentLists the aliases of an agent and information about each one.
listAgentAliases in interface AWSBedrockAgentpublic ListAgentKnowledgeBasesResult listAgentKnowledgeBases(ListAgentKnowledgeBasesRequest request)
AWSBedrockAgentLists knowledge bases associated with an agent and information about each one.
listAgentKnowledgeBases in interface AWSBedrockAgentpublic ListAgentVersionsResult listAgentVersions(ListAgentVersionsRequest request)
AWSBedrockAgentLists the versions of an agent and information about each version.
listAgentVersions in interface AWSBedrockAgentpublic ListAgentsResult listAgents(ListAgentsRequest request)
AWSBedrockAgentLists the agents belonging to an account and information about each agent.
listAgents in interface AWSBedrockAgentpublic ListDataSourcesResult listDataSources(ListDataSourcesRequest request)
AWSBedrockAgentLists the data sources in a knowledge base and information about each one.
listDataSources in interface AWSBedrockAgentpublic ListFlowAliasesResult listFlowAliases(ListFlowAliasesRequest request)
AWSBedrockAgentReturns a list of aliases for a flow.
listFlowAliases in interface AWSBedrockAgentpublic ListFlowVersionsResult listFlowVersions(ListFlowVersionsRequest request)
AWSBedrockAgentReturns a list of information about each flow. For more information, see Deploy a flow in Amazon Bedrock in the Amazon Bedrock User Guide.
listFlowVersions in interface AWSBedrockAgentpublic ListFlowsResult listFlows(ListFlowsRequest request)
AWSBedrockAgentReturns 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.
listFlows in interface AWSBedrockAgentpublic ListIngestionJobsResult listIngestionJobs(ListIngestionJobsRequest request)
AWSBedrockAgentLists the ingestion jobs for a data source and information about each of them.
listIngestionJobs in interface AWSBedrockAgentpublic ListKnowledgeBasesResult listKnowledgeBases(ListKnowledgeBasesRequest request)
AWSBedrockAgentLists the knowledge bases in an account and information about each of them.
listKnowledgeBases in interface AWSBedrockAgentpublic ListPromptsResult listPrompts(ListPromptsRequest request)
AWSBedrockAgentReturns 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.
listPrompts in interface AWSBedrockAgentpublic ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
AWSBedrockAgentList all the tags for the resource you specify.
listTagsForResource in interface AWSBedrockAgentpublic PrepareAgentResult prepareAgent(PrepareAgentRequest request)
AWSBedrockAgent
Creates a DRAFT version of the agent that can be used for internal testing.
prepareAgent in interface AWSBedrockAgentpublic PrepareFlowResult prepareFlow(PrepareFlowRequest request)
AWSBedrockAgent
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.
prepareFlow in interface AWSBedrockAgentpublic StartIngestionJobResult startIngestionJob(StartIngestionJobRequest request)
AWSBedrockAgentBegins an ingestion job, in which a data source is added to a knowledge base.
startIngestionJob in interface AWSBedrockAgentpublic TagResourceResult tagResource(TagResourceRequest request)
AWSBedrockAgentAssociate tags with a resource. For more information, see Tagging resources in the Amazon Bedrock User Guide.
tagResource in interface AWSBedrockAgentpublic UntagResourceResult untagResource(UntagResourceRequest request)
AWSBedrockAgentRemove tags from a resource.
untagResource in interface AWSBedrockAgentpublic UpdateAgentResult updateAgent(UpdateAgentRequest request)
AWSBedrockAgentUpdates the configuration of an agent.
updateAgent in interface AWSBedrockAgentpublic UpdateAgentActionGroupResult updateAgentActionGroup(UpdateAgentActionGroupRequest request)
AWSBedrockAgentUpdates the configuration for an action group for an agent.
updateAgentActionGroup in interface AWSBedrockAgentpublic UpdateAgentAliasResult updateAgentAlias(UpdateAgentAliasRequest request)
AWSBedrockAgentUpdates configurations for an alias of an agent.
updateAgentAlias in interface AWSBedrockAgentpublic UpdateAgentKnowledgeBaseResult updateAgentKnowledgeBase(UpdateAgentKnowledgeBaseRequest request)
AWSBedrockAgentUpdates the configuration for a knowledge base that has been associated with an agent.
updateAgentKnowledgeBase in interface AWSBedrockAgentpublic UpdateDataSourceResult updateDataSource(UpdateDataSourceRequest request)
AWSBedrockAgentUpdates the configurations for a data source connector.
You can't change the chunkingConfiguration after you create the data source connector. Specify the
existing chunkingConfiguration.
updateDataSource in interface AWSBedrockAgentpublic UpdateFlowResult updateFlow(UpdateFlowRequest request)
AWSBedrockAgentModifies 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.
updateFlow in interface AWSBedrockAgentpublic UpdateFlowAliasResult updateFlowAlias(UpdateFlowAliasRequest request)
AWSBedrockAgentModifies 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.
updateFlowAlias in interface AWSBedrockAgentpublic UpdateKnowledgeBaseResult updateKnowledgeBase(UpdateKnowledgeBaseRequest request)
AWSBedrockAgentUpdates 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.
updateKnowledgeBase in interface AWSBedrockAgentpublic UpdatePromptResult updatePrompt(UpdatePromptRequest request)
AWSBedrockAgentModifies 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.
updatePrompt in interface AWSBedrockAgentpublic void shutdown()
AWSBedrockAgentshutdown in interface AWSBedrockAgentpublic ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AWSBedrockAgentResponse metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata in interface AWSBedrockAgentrequest - The originally executed request.