langgraph-supervisor-py  by langchain-ai

Python library for multi-agent system creation using LangGraph

Created 7 months ago
1,300 stars

Top 30.7% 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

1 month ago

Responsiveness

1 day

Pull Requests (30d)
2
Issues (30d)
4
Star History
82 stars in the last 30 days

Explore Similar Projects

Starred by Andrew Ng Andrew Ng(Founder of DeepLearning.AI; Cofounder of Coursera; Professor at Stanford), Thomas Wolf Thomas Wolf(Cofounder of Hugging Face), and
4 more.

ag2 by ag2ai

0.9%
4k
AgentOS for building AI agents and facilitating multi-agent cooperation
Created 10 months ago
Updated 2 days ago
Feedback? Help us improve.