Langroid is a Python framework for building LLM-powered applications, developed by researchers from CMU (Carnegie Mellon University) and UW-Madison (University of Wisconsin-Madison). It emphasizes being intuitive, lightweight, extensible, and principled, with its core idea being "Harness LLMs with Multi-Agent Programming".
Purpose and Basic Approach Langroid is used to develop applications based on large language models. Developers create Agents, optionally equip them with components (LLMs, vector stores, and tools/functions), assign them tasks, and let them collaborate to solve problems by exchanging messages with each other. This multi-agent paradigm is inspired by the Actor framework, but the official documentation states that using it does not require any knowledge of the Actor framework. The framework does not depend on LangChain or other LLM frameworks, and can work with almost any LLM.
Main Capabilities
- Multi-agent collaboration: multiple Agents can collaborate on the same problem.
- Tool/function calling: Agents can be equipped with tools, supporting function-calling/tools, including the OpenAI tools API and multi-tools.
- Structured information extraction: structured information can be extracted from documents, including examples using only a local LLM (such as Mistral-7b-instruct-v0.2).
- RAG-related Agents: provides DocChatAgent, supporting Reciprocal Rank Fusion (RRF) to rank chunks retrieved by different methods, and chunk enrichment to improve retrieval.
- SQL-related Agents: provides SQLChatAgent.
- Model compatibility: supports non-OpenAI local/remote LLMs, such as models hosted via glhf.chat (e.g., Qwen2.5-Coder-32b-Instruct), Gemini models, DeepSeek v3, llama-3.1 models hosted via the Cerebras cloud, and OpenAI o1-mini / o1-preview, etc. Supports reasoning capture and streaming output for Reasoning LLMs (such as DeepSeek-R1, OpenAI o1).Content capture and streaming output.
- Multimodal: allows inputting PDFs and images to LLMs, and later versions also support video attachments.
- MCP support: through a simple MCP tool adapter, converts MCP Server tools into Langroid ToolMessages, enabling any LLM-Agent to use MCP servers.
- Task orchestration and termination: provides Orchestration Tools for signaling task status and passing messages between Agents; supports event-based termination (done_sequences); supports structured task budgets (cooperative max_time task budgets); provides TaskTool to delegate tasks to sub-Agents.
- Tools and retrieval augmentation: supports document parsing (PDF, doc, docx, and later Markdown/HTML, pptx, xlsx, xls, etc.), multiple vector databases, multiple embeddings, and multiple crawlers/parsers (such as Firecrawl, Exa, Markitdown, Marker, Crawl4AI, docling, pymupdf4llm, etc.).
Usage and Installation Commands The materials provide entry points such as project documentation, an examples repository, Discord, and contribution guidelines, but do not provide specific installation commands or code installation steps, so this part is not yet provided. Links and names appearing in the materials include: Documentation, Examples Repo, Discord, Contributing, Langroid Quick-Start Colab, Langroid architecture overview, Langroid quick tour, migration note, contribution documentation, etc.
Applicable Scenarios Suitable for Python developers who need to build LLM applications, especially scenarios requiring multi-agent collaboration, tool calling, structured information extraction, document question answering (RAG), SQL question answering, using local or third-party LLMs, integrating MCP tools, or requiring task orchestration and subtask delegation. The official documentation mentions that Nullify has used/adapted Langroid's multi-agent orchestration framework in production for secure software development (discovering, prioritizing, and fixing vulnerabilities), and evaluates it compared with CrewAI, Autogen, LangChain, Langflow, etc. in building robustbetter in ease and flexibility.
Limitations and notes
- The material does not provide information on fees, pricing, or payment methods.
- The material does not provide specific platform support details (other than the Python framework and compatible models/services).
- The material does not provide specific installation commands.
- All of Langroid's document parsers (pdf, doc, docx) and most vector databases (except qdrant) have become optional/extra dependencies (since the 0.3-related versions), belonging to a "leaner" langroid.
- 0.68.0 removed OpenAIAssistant because OpenAI took the Assistants API beta offline on 2026-08-26, all endpoints return HTTP 404, and this class cannot work; its tests and examples were removed along with it, while OpenAIGPT, used by almost all Langroid code, is unaffected.
- 0.67.0 carried out security hardening, including env_prefix for setting vector store configuration per provider (environment variable naming has changed), generalized taint propagation across tool resend paths, and a one-time warning when FileAttachment payloads inflate context preflight.
- 0.59.0 completed the Pydantic V2 migration, increasing validation speed by 5-50x while maintaining 100% backward compatibility.
Version update highlights (according to the material) 2026: 0.68.0 removed OpenAIAssistant; 0.67.0 security hardening; 0.66.0 community batch (14 PRs), including Milvus vector store, Markdown/HTML document parsing, collaborative max_time task budget, MCP tool namespaces for multi-server Agents, portable JSON chat history snapshots, video attachments, retrieval score thresholds, even context overflow truncation, and several routing/parsing fixes. 2025: 0.59.0 Pydantic V2 migration; 0.58.0 Crawl4AI integration (Playwright-based browser crawling, no API key required); 0.57.0 HTML Logger interactive task visualization; 0.56.0 TaskTool delegating tasks to sub-Agents; 0.55.0 event-based done_sequences task termination; 0.54.0 Portkey AI Gateway support (unified API access to 200+ models, including caching, retries, observability); 0.53.0 MCP tool support; 0.52.0 multimodality (PDF, image input); 0.51.0 LLMPdfParser; 0.50.0 structure-aware Markdown chunking; 0.49.0 easy switching to LiteLLM Proxy-server; 0.48.0 Exa Crawler, Markitdown Parser; 0.47.0 Firecrawl crawler/scraper; 0.46.0 LangDB LLM Gateway; 0.45.0 Marker's Markdown parsing; 0.44.0 lazy imports to reduce startup time; 0.43.0 GeminiPdfParser; 0.42.0 markitdown parsing pptx/xlsx/xls; 0.41.0 pinecone vector store, Tavily web search, Exa web search; 0.40.0 pgvector vector store; 0.39.0 handle_llm_no_tool handling LLMs forgetting to use tools; 0.38.0 Gemini embeddings; 0.37.0 new PDF parsers docling, pymupdf4llm; 0.36.0 Weaviate vector store; 0.35.0 capturing/streaming Reasoning LLM reasoning content; 0.34.0 DocChatAgent chunk enrichment; 0.33.0 migration from Poetry to uv; 0.32.0 DeepSeek v3 support. 2024 (partial): 0.31.0 Azure OpenAI Embeddings; 0.30.0 Llama-cpp embeddings; 0.29.0 custom Azure OpenAI client; 0.28.0 ToolMessage's _handler field; 0.27.0 OpenRouter support; 0.26.0 update to the latest Chainlit; 0.25.0 true async methods and user responses; 0.24.0 support for strict JSON schema output format and OpenAI tools API strict mode; 0.23.0 support for glhf.chat hosted LLM; 0.22.0 optional parameter to truncate large tool results; 0.21.0 direct support for Gemini models via the OpenAI client; 0.20.0 support for ArangoDB knowledge graph; 0.18.0 LLMConfig.async_stream_quiet; 0.17.0 XML-based tools; 0.16.0 support for OpenAI o1-mini and o1-preview; 0.15.0 Cerebras API support; 0.14.0 DocChatAgent uses RRF; 0.12.0 run_batch_task adds stop_on_first_result option; 0.11.0 polymorphic Task.run(), Task.run_async; 0.10.0 tool handlers can return any result type; 0.9.0 Orchestration Tools; 0.7.0 OpenAI tools API support (including multiple tools); 0.3.0 FastEmbed embeddings for Qdrant; 0.2.0 improved lineage tracking, fine-grained subtask configuration, and RewindTool; starting in May 2024, document parsers and most vector databases became optional/extra dependencies.
Other notes Officially, contributions are welcome, and contribution documentation is provided. The material also mentions that Prasad Chalasani is available for consulting (advisor/development), with contact at pchalasani at gmail dot com; sponsorship via GitHub Sponsors is also accepted. Feedback and questions can be raised by joining Discord.