langchain-ai/langgraph-swarm-py
A Python library for building swarm-style multi-agent systems using LangGraph, where specialized agents dynamically hand off control to each other.

This library enables creation of swarm-style multi-agent architectures where agents dynamically transfer control to specialized peers based on their capabilities. It is built on top of LangGraph and provides customizable handoff tools, out-of-the-box streaming support, short-term and long-term memory, and human-in-the-loop capabilities. The system maintains conversation state to ensure subsequent interactions resume with the last active agent.
Frequently asked
- What is langchain-ai/langgraph-swarm-py?
- A Python library for building swarm-style multi-agent systems using LangGraph, where specialized agents dynamically hand off control to each other.
- Is langgraph-swarm-py open source?
- Yes — langchain-ai/langgraph-swarm-py is open source, released under the MIT license.
- What language is langgraph-swarm-py written in?
- langchain-ai/langgraph-swarm-py is primarily written in Python.
- How popular is langgraph-swarm-py?
- langchain-ai/langgraph-swarm-py has 1.5k stars on GitHub.
- Where can I find langgraph-swarm-py?
- langchain-ai/langgraph-swarm-py is on GitHub at https://github.com/langchain-ai/langgraph-swarm-py.