In this lab, you'll learn how to build a simple multi-agent system using LangGraph’s Swarm library.
You will create two AI agents with different roles who can hand off tasks to each other dynamically — without using any tools. This is perfect for showcasing agent collaboration, decision-making, and handoff logic using just prompts and messages.
By the end of this notebook, you’ll understand how to:
Create agents using create_react_agent
Connect them in a swarm using create_swarm
Enable dynamic handoffs between agents
Run a conversation where agents decide who should respond next
Upon completion of this lab, you will be able to:
Completion of previous modules is highly recommended before attempting this lab.