Get startedGet started for free

Another agent!

This exercise is part of the course

Multi-Agent Systems with LangGraph

View Course

Exercise instructions

Run the first two cells to install the libraries and re-define the tools

  • Create handoff tools to handoff tasks to the researcher and analyst agents, transfer_to_researcher and transfer_to_analyst, respectively.
  • Create two agents to manage the research and analyst tools, named "researcher" and "analyst", that will have access to the task tools and handoff tools.
  • Create the swarm graph from the research_agent and analyst_agent, ensuring the workflow starts with the researcher agent.


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise