langgraph-101  by langchain-ai

Framework for building complex agent and multi-agent applications

Created 1 year ago
305 stars

Top 88.1% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This repository offers a curated collection of hands-on notebooks designed to teach the fundamentals and advanced patterns of LangGraph, a powerful framework for building sophisticated agent and multi-agent applications. It targets developers aiming to create LLM-powered systems with enhanced control, precision, and reliability for complex, real-world tasks. The primary benefit is providing a structured, practical learning path to master agent development beyond basic LLM interactions.

How It Works

LangGraph is architected as a distinct framework from LangChain, specifically addressing the need for greater control and precision in agent workflows. Its core design philosophy empowers developers to implement intricate logic, such as state-dependent tool selection or dynamic prompting strategies, which are critical for robust agent behavior. The tutorials guide users through building agents using the latest LangChain v1 and LangGraph v1 primitives, including the create_agent() function, middleware for intercepting and modifying agent execution, and advanced interrupt patterns for human-in-the-loop interactions.

Quick Start & Requirements

  • Installation: Begin by cloning the repository. Set up a Python environment using pip and uv (pip install uv, uv sync), then activate the virtual environment. A recent version of Python and pip is required.
  • Running: Execute langgraph dev from the project's root directory to launch a local API server and the LangGraph Studio UI, facilitating development and debugging.
  • Prerequisites: Python 3.x, pip. Configuration of LLM provider API keys is necessary; OpenAI is the default, but Azure OpenAI, AWS Bedrock, and Google Vertex AI are supported via environment variables in a .env file and modifications in utils/models.py.
  • Resources:

Highlighted Details

  • Features two distinct learning tracks: LG101 focuses on fundamental agent building, while LG201 delves into advanced production patterns like multi-agent systems and stateful agents.
  • Notebooks provide practical examples for building agents with models, tools, memory, streaming capabilities, middleware integration, human-in-the-loop workflows, email triage agents, and complex multi-agent orchestrations.
  • Employs the latest LangChain v1 and LangGraph v1 primitives, ensuring users learn current best practices.
  • Includes a centralized utils module for streamlined LLM model configuration and shared utility functions, simplifying the process of switching between different LLM providers.

Maintenance & Community

The provided README does not detail specific contributors, sponsorships, or community channels such as Discord or Slack.

Licensing & Compatibility

The README does not explicitly state the repository's license, which may impact commercial use or integration into closed-source projects.

Limitations & Caveats

This repository serves primarily as an educational resource. Users might encounter challenges during setup, particularly concerning the acquisition and configuration of API keys for various LLM providers. The README suggests contacting a LangChain representative for potential work-arounds if restrictions impede setup.

Health Check
Last Commit

2 weeks ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
0
Star History
30 stars in the last 30 days

Explore Similar Projects

Starred by Yiran Wu Yiran Wu(Coauthor of AutoGen) and Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research).

PocketFlow by The-Pocket

0.9%
10k
Minimalist LLM framework for agentic coding
Created 1 year ago
Updated 1 month ago
Starred by Chip Huyen Chip Huyen(Author of "AI Engineering", "Designing Machine Learning Systems"), Yaowei Zheng Yaowei Zheng(Author of LLaMA-Factory), and
5 more.

trae-agent by bytedance

0.5%
11k
LLM-powered CLI for software engineering tasks
Created 7 months ago
Updated 4 months ago
Starred by Eric Zhu Eric Zhu(Coauthor of AutoGen; Research Scientist at Microsoft Research), Elvis Saravia Elvis Saravia(Founder of DAIR.AI), and
2 more.

deepagents by langchain-ai

2.6%
9k
Framework for building advanced LLM agents
Created 6 months ago
Updated 1 day ago
Feedback? Help us improve.