langroid  by langroid

Multi-agent programming framework for LLM application development

created 2 years ago
3,535 stars

Top 14.0% on sourcepulse

GitHubView on GitHub
Project Summary

Langroid is a Python framework for building LLM-powered applications using a multi-agent programming paradigm. It allows developers to create, configure, and orchestrate multiple AI agents that communicate via messages to solve complex problems, offering an alternative to existing LLM orchestration frameworks.

How It Works

Langroid models applications as a system of interacting Agents, inspired by the Actor model. Each Agent is an LLM-powered entity that can be equipped with tools, vector stores, and specific system messages. Agents communicate by exchanging messages, enabling collaborative problem-solving. The framework emphasizes an intuitive developer experience, abstracting away much of the complexity of LLM interactions and multi-agent coordination.

Quick Start & Requirements

  • Install via pip: pip install langroid or pip install "langroid[all]" for all optional dependencies.
  • Requires Python 3.11+.
  • OpenAI API key is recommended for initial setup, configurable via .env file or environment variables.
  • Official documentation: langroid.github.io/langroid
  • Colab Quick Start: Langroid_quick_start.ipynb

Highlighted Details

  • Multi-Agent Orchestration: Supports complex agent interactions, task delegation, and message routing.
  • Broad LLM Support: Works with OpenAI models and hundreds of others via LiteLLM, Ollama, and other compatible servers.
  • Extensive Tooling: Integrates with various vector stores (Qdrant, Chroma, LanceDB, Pinecone, PGVector, Weaviate), document parsers, and offers Pydantic-based function calling/tool usage.
  • Specialized Agents: Includes agents for document Q&A (DocChatAgent), tabular data (TableChatAgent), and knowledge graphs (Neo4jChatAgent).

Maintenance & Community

  • Active development with frequent releases and contributions from researchers and the community.
  • Discord server available for support and discussion: discord.gg/ZU36McDgDs
  • Substack newsletter for updates: langroid.substack.com

Licensing & Compatibility

  • The project appears to be primarily licensed under the MIT License, promoting broad compatibility for commercial and closed-source use.

Limitations & Caveats

  • Documentation is noted as "Work In Progress" (WIP) in some areas.
  • While supporting many LLMs, optimal performance and prompt adherence may vary, with OpenAI's GPT-4/GPT-4o often cited as the baseline for tested prompts.
Health Check
Last commit

1 week ago

Responsiveness

1 day

Pull Requests (30d)
23
Issues (30d)
13
Star History
306 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
Starred by Chip Huyen Chip Huyen(Author of AI Engineering, Designing Machine Learning Systems), Didier Lopes Didier Lopes(Founder of OpenBB), and
1 more.

langgraph by langchain-ai

2.1%
17k
Agent orchestration framework for building controllable agents
created 2 years ago
updated 1 day ago
Feedback? Help us improve.