Lesson 1 of 5 Multi-Agent Systems and Agent Safeguards

Designing Multi-Agent Architectures

This lesson describes how multi-agent systems split responsibilities among specialised agents, the main architectures, and the AWS frameworks that implement them, since a single agent with dozens of tools becomes slow, expensive and error-prone.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain why a single agent becomes unreliable as it grows.
  • Distinguish the router, supervisor and peer patterns.
  • Choose among Agent Squad, Bedrock multi-agent collaboration and Strands.

Why multiple agents

A single agent given every tool and every instruction an application needs becomes unreliable as it grows: with dozens of tools, the model chooses the wrong one more often, its system prompt becomes long and contradictory, and every request pays for the largest model. Multi-agent systems divide the work among specialised agents, each with focused instructions, a small set of relevant tools and possibly a different model, which improves tool selection and lowers cost. Separate agents can also be developed, tested and owned by different teams.

The cost is coordination. Requests must be routed to the right agent, context must be passed between agents without losing information, results must be combined, and loops in which agents keep handing work to each other must be prevented. Multi-agent designs therefore pay off when tasks span distinct domains, such as billing, technical support and sales, or distinct skills, such as research, analysis and writing, and not for tasks that one well-designed agent can handle.

Routing, supervisor and peer patterns

Multi-agent systems are organised in a few recognisable patterns. In the router pattern, a classifier sends each request to the single most suitable agent, which handles it from start to finish; it is simple and cheap, but cannot handle requests that need several specialists. In the supervisor pattern, also called orchestrator-workers, a lead agent plans the task, delegates sub-tasks to specialist agents, often by calling them as tools, and combines their results; it handles complex requests at the cost of more model calls.

In peer patterns such as swarms, agents hand work directly to one another without a central coordinator, which is flexible but harder to predict and debug. Graph patterns connect agents in a defined structure with conditional transitions between them, which gives more predictable behaviour and suits processes with known stages. Amazon Bedrock multi-agent collaboration implements the supervisor and router patterns, and frameworks such as Strands Agents support all four.

The following diagram shows the four patterns side by side.

Four multi-agent patterns. A router sends each request to one specialist. A supervisor plans, delegates sub-tasks to specialists and combines their results. In a swarm, agents hand work to each other with no coordinator. A graph connects agents in a defined structure with conditional transitions.
Amazon Bedrock multi-agent collaboration implements the supervisor and router patterns.
Sort into groups

Router, supervisor or peer?

Exam skills 2.1.1

Choose the multi-agent pattern that fits each requirement.

Log in to try this activity Interactive activities are free with an account.

AWS frameworks for multi-agent systems

AWS Agent Squad (formerly Multi-Agent Orchestrator) is an open-source framework for Python and TypeScript. Its classifier analyses each request with the conversation history and agent descriptions and routes it to the best agent, which can be a Bedrock model, a Bedrock agent, an Amazon Lex bot, a Lambda function or a custom agent. It keeps conversation history per agent (for example in DynamoDB) and offers a supervisor agent that coordinates a team of agents in parallel. The project began in AWS Labs and is now maintained by 2FastLabs, still as open source under the Apache 2.0 licence; the exam guide refers to it as AWS Agent Squad.

Strands Agents provides agents as tools, swarm, graph and workflow patterns in code. Amazon Bedrock Agents multi-agent collaboration configures a supervisor agent with collaborator agents, in supervisor mode (plan and delegate) or supervisor with routing mode (route simple requests directly). The Agent2Agent (A2A) protocol lets agents built with different frameworks communicate, and AgentCore Runtime supports it. The following table summarises the options.

OptionPatternBest for
AWS Agent SquadClassifier routing; supervisor teamRouting conversations among specialised agents
Strands Agents multi-agentAgents as tools, swarm, graph, workflowCode-first teams needing flexible patterns
Bedrock Agents collaborationSupervisor with collaboratorsManaged agents configured without code
A2A protocolAgent-to-agent communicationAgents across frameworks and teams

The following diagram shows an agent with 45 tools split into specialist agents behind a classifier.

Splitting a 45-tool agent into specialists. A classifier, such as Agent Squad or a supervisor agent, sends each request to a billing, network, devices or sales agent that has only its own tools. Tool selection improves, each request carries a short tool list, and history kept per agent preserves context when users return to a topic.
Each specialist sends only its own tool list to the model.
Match the pairs

Multi-agent frameworks

Exam skills 2.1.1 · 2.5.5

Match each requirement with the AWS option that fits it.

Log in to try this activity Interactive activities are free with an account.
Worked example

One agent doing everything

A telecom assistant has 45 tools covering billing, network faults, device setup and sales. Tool selection errors are frequent and each request sends a very long tool list.

Splitting it into specialist agents (billing, network, devices, sales), each with only its tools, behind an Agent Squad classifier (or a supervisor agent) improves tool selection and reduces tokens per request. Conversation history per agent keeps context when users return to a topic.

Check yourself

How does a supervisor differ from a router?

Show answer

A router sends each request to one agent; a supervisor plans the task and delegates parts of it to several agents.

Exam Tips

Remember for the exam

  • Too many tools in one agent: split into specialised agents.
  • Router sends each request to one agent; supervisor plans and delegates.
  • Agent Squad: classifier-based routing among agents.
  • Bedrock Agents: supervisor and collaborator agents without code.