mentis  by foreveryh

Multi-agent orchestration framework

Created 7 months ago
286 stars

Top 91.6% on SourcePulse

GitHubView on GitHub
Project Summary

Mentis is a Python framework for building and orchestrating multi-agent systems, leveraging LangGraph for state-driven planning and execution. It targets developers and researchers building complex AI applications, enabling sophisticated task automation through collaborative agents.

How It Works

Mentis employs a state-based planning architecture where a Supervisor Agent coordinates Specialist Agents. A dedicated Planner node creates an initial plan, which the Supervisor then executes by delegating tasks to specialized agents (e.g., Coder, Researcher). An Evaluator node assesses agent outputs, updating the plan's state. This iterative process, managed by LangGraph's graph execution and checkpointer for persistence, allows for complex, multi-step task resolution and inter-agent communication via the A2A protocol.

Quick Start & Requirements

  • Installation: uv sync or pip install -r requirements.txt after setting up a Python 3.11+ environment.
  • Prerequisites: API keys for LLMs (OpenAI, DeepSeek, XAI Grok), search tools (Tavily, Exa), and optional tools like E2B or Replicate. LangSmith keys are highly recommended for debugging.
  • Running Examples: Execute example scripts like python examples/state_based_supervisor_examples/03_multi_agents.py from the project root.
  • Documentation: Project structure and configuration details are in the README.

Highlighted Details

  • State-driven planning with dedicated Planner, Supervisor, and Evaluator nodes.
  • Support for Google's Agent-to-Agent (A2A) protocol for interoperability.
  • Modular agent design with BaseAgent and ReactAgent, facilitating custom agents.
  • Centralized tool registration and dynamic loading.
  • Persistence via LangGraph's Checkpointer mechanism.
  • Includes a "Super Agent" concept for complex, end-to-end tasks, exemplified by the DeepResearch Agent.

Maintenance & Community

The project is actively developed, with contributions welcomed via Issues and Pull Requests. Contact information (WeChat) is provided for support.

Licensing & Compatibility

Licensed under the MIT License, permitting commercial use and integration with closed-source projects.

Limitations & Caveats

The requirements.txt file is noted as not actively maintained, requiring users to ensure all necessary libraries are included. Future work includes enhancing agent toolsets, evaluator logic, and task dependency handling.

Health Check
Last Commit

5 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
5 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.7%
4k
AgentOS for building AI agents and facilitating multi-agent cooperation
Created 11 months ago
Updated 1 day ago
Starred by Elie Bursztein Elie Bursztein(Cybersecurity Lead at Google DeepMind), Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), and
7 more.

SuperAGI by TransformerOptimus

0.1%
17k
Open-source framework for autonomous AI agent development
Created 2 years ago
Updated 8 months ago
Feedback? Help us improve.