Tools / Agent orchestration

LangGraph

framework

Low-level framework and runtime for building long-running, stateful agents as graphs of state, nodes and edges.

Role Agent orchestrationMaintained by LangChainLanguages Python, TypeScriptLicense MITFirst release Jan 2024

What it is

LangGraph is LangChain's open-source orchestration framework for agents that need explicit control flow. You describe an agent or workflow as a graph: shared state, nodes that do work, and edges that decide what runs next. Its runtime adds durable execution (checkpoints), human-in-the-loop pauses, short- and long-term memory and streaming. It does not prescribe prompts or agent architecture and can be used without LangChain itself.

How it works

You define a typed state object and a StateGraph, add nodes (functions or LLM calls that read and update state) and edges, including conditional edges that branch on the state. When compiled with a checkpointer, the graph saves state after each step to a thread, so a run can be resumed after a failure, paused with an interrupt for a human, or replayed from an earlier point.

Key concepts

StateGraph
The graph builder; every node reads and writes one shared, typed state object.
Node
A unit of work (a function, LLM call or tool call) that returns updates to the state.
Conditional edge
A routing function that chooses the next node based on the current state, enabling loops and branches.
Checkpointer
Persistence layer that saves state after every step, enabling resume, time travel and memory per thread.
Interrupt
Pauses execution so a person can inspect or edit state before the graph continues.

Use it when

  • You need fine-grained control over an agent's loop, branching and retries rather than a prebuilt agent abstraction.
  • Agents must run for a long time, survive failures, or pause for human approval and resume later.
  • You want multi-agent or supervisor patterns expressed as explicit, inspectable graphs in Python or TypeScript.

Look elsewhere when

  • A single prompt plus a few tool calls is enough — a higher-level agent SDK (or LangChain's create_agent) is simpler.
  • Your team works in TypeScript-first web stacks and prefers batteries-included frameworks such as Mastra or the Vercel AI SDK.

Who uses it

  • Klarna

    AI assistant handling customer support for 85 million active users, built with LangGraph and LangSmith.

    Evidence: langchain.com

  • LinkedIn

    GenAI application stack, including a hierarchical agent system behind its AI recruiter.

    Evidence: linkedin.com

  • Uber

    Networks of agents that automate unit-test generation for large code migrations.

    Evidence: dpe.org

  • Elastic

    Orchestrates AI agents for security features such as Attack Discovery and Automatic Import.

    Evidence: elastic.co

  • AppFolio

    Realm-X, a copilot for property-management workflows.

    Evidence: langchain.com

  • CopilotKitintegrates

    CopilotKit front ends connect to LangGraph agents over AG-UI.

    Evidence: docs.ag-ui.com

Milestones

  1. LangGraph 1.0 released for Python and TypeScript, with a commitment to no breaking changes until 2.0. (langchain.com)
  2. The hosted LangGraph Platform was renamed LangSmith Deployment, and LangGraph Studio became LangSmith Studio. (changelog.langchain.com)

Start learning