Prerequisites for Agents for Amazon Bedrock
Ensure that your IAM role has the necessary permissions to perform actions related to Agents for Amazon Bedrock.
Before creating an agent, review the following prerequisites and determine which ones you need to fulfill:
-
You must set up at least one of the following for your agent:
-
Action group – Defines actions that the agent can help end users perform. Each action group includes the parameters that the agent must elicit from the end-user. You can also define the APIs that can be called, how to handle the action, and how to return the response. Your agent can have up to 20 action groups. You can skip this prerequisite if you plan to have no action groups for your agent.
-
Knowledge base – Provides a repository of information that the agent can query to answer customer queries and improve its generated responses. Associating at least one knowledge base can help improve responses to customer queries by using private data sources. Your agent can have up to 2 knowledge bases. You can skip this prerequisite if you plan to have no knowledge bases associated with your agent.
-
-
(Optional) Create a custom AWS Identity and Access Management (IAM) service role for your agent with the proper permissions. You can skip this prerequisite if you plan to use the AWS Management Console to automatically create a service role for you.
-
(Optional) Create a guardrail to implement safeguards for your agent and to prevent unwanted behavior from model responses and user messages. You can then associate it with your agent.
-
(Optional) Purchase Provisioned Throughput to increase the number and rate of tokens that your agent can process in a given time frame. You can then associate it with an alias of your agent when you create a version of your agent and associate an alias with it.