Module 07 Multi Agent Patterns with Strands - akash-coded/aws-bedrock-agentcore-strands GitHub Wiki

πŸ•ΈοΈ Module 07 Β· Multi-Agent Patterns with Strands

Swarm, graph, delegation, critique β€” and when each one is wrong.

Module 07 of 16 Β· track Build Β· Estimated time: 6–7 hours Β· Prerequisites: Module 06.

Multi-agent is not automatically better. This module teaches the patterns as a menu with costs attached: what each buys you, what it costs in tokens and latency, and the failure mode each invites.

Open the module on GitHub β†—: the slides, notebooks, exercises and solutions are there. This page is the reading order, with the tutorial and the workbench alongside.

Read first, on the site

The lesson that frames this module is Agentic PDLC for Solution Architects: Authority and Topology (7 min): how many agents, and why each hand-off costs. Then try the NFR utility tree in the workbench: the same decision, with your numbers.

What you will be able to do

  • Implement swarm, graph, delegation and critique patterns in Strands
  • Choose a pattern from requirements rather than fashion
  • Predict the token and latency cost of a topology before running it
  • Debug a multi-agent system where the failure is in the handoff, not the agent

Concepts in this module

Portable GenAI concepts AWS-specific surface
Swarm Strands multi-agent primitives
Graph orchestration Bedrock model routing
Delegation
Critique/reflection loops
Deterministic vs autonomous orchestration

Portable concepts transfer to any stack. The AWS column is where this module touches the cloud β€” see docs/concepts/portability-matrix.md.

Run it in this order

# Step What it is
1 πŸ“– slides/Advanced_Strands_Multi_Agent_Patterns_SLIDES.md Advanced multi-agent patterns
2 πŸ’» notebooks/NB1_Foundations_Workflow_Patterns.ipynb NB1 β€” workflow patterns
3 ✏️ exercises/Exercise_1_Foundations.md Exercise 1 β€” foundations
4 ✏️ exercises/Exercise_2_Dials_and_Cost.md Exercise 2 β€” dials and cost
5 πŸ’» notebooks/NB2_Agentic_Patterns.ipynb NB2 β€” agentic patterns
6 ✏️ exercises/Exercise_3_Delegation_and_Critique.md Exercise 3 β€” delegation and critique
7 πŸ’» notebooks/NB3_Autonomous_Deterministic_Orchestration.ipynb NB3 β€” autonomous vs deterministic
8 ✏️ exercises/Exercise_4_Swarm_and_Graph.md Exercise 4 β€” swarm and graph
9 πŸ’» notebooks/PierPoint_Release_Desk_Graph_vs_Swarm.ipynb PierPoint: graph vs swarm, head to head
10 ✏️ exercises/Exercise_5_Capstone_Composition.md Exercise 5 β€” capstone composition
11 ✏️ exercises/Coding_Exercise_3_Advanced.ipynb Advanced coding exercise

πŸ“– read   πŸ’» run   ✏️ practise   πŸ“Š workbook   πŸ”– reference

Worked solutions live in solutions/. Attempt every exercise closed-book first β€” the solutions are written to be read after you have a wrong answer to compare against.

Common mistakes

  • Adding agents to fix a prompt problem. More agents multiply the prompt problem.
  • Swarms with no termination condition. They will happily run until your budget ends.
  • Ignoring that every handoff re-sends context. Topology is a cost decision.

When it breaks

Every error anyone has hit in this course is in the Error Index, by the exact string. Model access and region problems are in Model and Region Notes. If it is a question rather than an error, check the answered ones first, then ask in Q&A.

Field guide for this module

Frameworks

Quick reference

  • Strands β€” Graph, swarm, delegation in code

Recipes and procedures


← Module 06 Β· Strands Foundations: Tools, Memory and MCP Β· All modules Β· Module 08 Β· LangChain and LangGraph β†’

✏️ This page is generated from modules/07-strands-multi-agent-patterns/README.md. To change it, edit the module README: an edit made here is replaced at the next sync.

⚠️ **GitHub.com Fallback** ⚠️