Skip to content

focused-dot-io/05-multi-agent-supervisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multi-Agent Supervisor and Swarm

Two multi-agent orchestration patterns for customer service built with LangGraph: a supervisor pattern where a central router dispatches to specialist agents, and a swarm pattern where agents hand off directly to each other using Command-based transfers. Both use create_agent with domain-specific tools and LangSmith tracing.

Prerequisites

Setup

python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
# Edit .env with your API keys

Environment Variables

Variable Required Description
ANTHROPIC_API_KEY Yes Anthropic API key for Claude
LANGSMITH_API_KEY Yes LangSmith API key for tracing and evals
LANGSMITH_TRACING Yes Set to true to enable tracing

Running

Run the supervisor pattern:

python supervisor.py

Run the swarm pattern:

python swarm.py

Article

[Multi-Agent Orchestration -- Supervisor and Swarm Patterns in LangGraph ](url)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages