AmazonBedrockAgent
The AmazonBedrockAgent
is a specialized agent class in the Multi-Agent Orchestrator that integrates directly with Amazon Bedrock agents.
Creating an AmazonBedrockAgent
To create a new AmazonBedrockAgent
with only the required parameters, use the following code:
In this basic example, we provide the four required parameters: name
, description
, agent_id
, and agent_alias_id
.
Parameter Explanations
name
: (Required) Identifies the agent within your system.description
: (Required) Describes the agent’s purpose or capabilities.agent_id
: (Required) The ID of the Amazon Bedrock agent you want to use.agent_alias_id
: (Required) The alias ID of the Amazon Bedrock agent.
Adding the Agent to the Orchestrator
To integrate the AmazonBedrockAgent into your Multi-Agent Orchestrator, follow these steps:
- First, ensure you have created an instance of the orchestrator:
- Then, add the agent to the orchestrator:
- Now you can use the orchestrator to route requests to the appropriate agent, including your Amazon Bedrock agent:
By leveraging the AmazonBedrockAgent
, you can easily integrate pre-built Amazon Bedrock agents into your Multi-Agent Orchestrator.