langgraph-supervisor-py  by langchain-ai

Python library for multi-agent system creation using LangGraph

created 5 months ago
1,165 stars

Top 34.0% on sourcepulse

GitHubView on GitHub
1 Expert Loves This Project
Project Summary

This library provides a Python framework for building hierarchical multi-agent systems, enabling a supervisor agent to orchestrate specialized agents. It's designed for developers and researchers creating complex agentic workflows that require task delegation and controlled communication, offering a structured approach to multi-agent coordination.

How It Works

The core of the library is the create_supervisor function, which builds a LangGraph StateGraph to manage agent interactions. It uses a tool-based handoff mechanism, allowing the supervisor LLM to delegate tasks to specific, specialized agents. This approach facilitates modularity and allows for clear separation of concerns within the multi-agent system.

Quick Start & Requirements

Highlighted Details

  • Supports creating multi-level hierarchies by nesting supervisors.
  • Offers flexible message history management (full_history or last_message).
  • Allows customization of handoff tools, including their names, descriptions, and arguments.
  • Provides options for adding memory (short-term and long-term) via checkpointers and stores.
  • Includes a create_forward_message_tool for direct message forwarding.

Maintenance & Community

The project is part of the LangGraph ecosystem, indicating active development and community support. Specific contributor details or community links are not explicitly mentioned in the README.

Licensing & Compatibility

The library is released under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The provided examples primarily use langchain-openai and gpt-4o, suggesting a strong dependency on OpenAI models. While the framework is flexible, adapting it to other LLM providers might require custom configurations.

Health Check
Last commit

5 days ago

Responsiveness

1 day

Pull Requests (30d)
9
Issues (30d)
19
Star History
363 stars in the last 90 days

Explore Similar Projects

Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Steven Hao Steven Hao(Cofounder of Cognition), and
6 more.

openai-agents-python by openai

1.5%
13k
Python SDK for multi-agent workflows
created 4 months ago
updated 1 day ago
Starred by Zhiqiang Xie Zhiqiang Xie(Author of SGLang), Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), and
6 more.

swarm by openai

0.3%
20k
Multi-agent orchestration framework for lightweight agent coordination
created 1 year ago
updated 4 months ago
Feedback? Help us improve.