langgraph  by langchain-ai

Agent orchestration framework for building controllable agents

Created 2 years ago
18,783 stars

Top 2.4% on SourcePulse

GitHubView on GitHub
Project Summary

LangGraph is an open-source framework for building controllable and resilient language agents as stateful graphs. It targets developers seeking to create sophisticated AI agents with custom architectures, long-term memory, and human-in-the-loop capabilities for complex tasks, offering enhanced reliability and visibility over simpler orchestration methods.

How It Works

LangGraph enables agent orchestration by representing agent workflows as graphs, allowing for custom architectures and state management. It provides low-level primitives for building agents, supporting features like moderation checks, human-in-the-loop approvals, and persistence of context for long-running workflows. This approach offers greater control and extensibility compared to rigid abstractions, facilitating the creation of scalable multi-agent systems.

Quick Start & Requirements

  • Install: pip install -U langgraph
  • Example dependency: pip install langchain[anthropic] for ReAct agent.
  • Resources: Requires Python. Specific LLM provider API keys may be needed for agent execution.
  • Docs: https://langgraph.ai/
  • Tutorials: https://langgraph.ai/tutorials

Highlighted Details

  • Used in production by companies like Replit, Uber, and LinkedIn.
  • First-class streaming support for token-by-token and intermediate step visibility.
  • Integrates seamlessly with the LangChain ecosystem for enhanced observability (LangSmith) and deployment (LangGraph Platform).
  • Inspired by Pregel, Apache Beam, and NetworkX.

Maintenance & Community

  • Developed by LangChain Inc.
  • Community resources include LangChain Academy, tutorials, templates, and how-to guides.

Licensing & Compatibility

  • License: MIT.
  • Compatibility: Can be used standalone or integrated with LangChain products.

Limitations & Caveats

The framework is designed for developers and may require a learning curve for complex agent implementations. While it can be used without LangChain, leveraging the broader ecosystem is recommended for full benefits.

Health Check
Last Commit

21 hours ago

Responsiveness

1 day

Pull Requests (30d)
155
Issues (30d)
85
Star History
1,397 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
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 7 months ago
Feedback? Help us improve.