Skip to content

LangGraph (Python)

Low-level orchestration for stateful, long-running LLM agents. LangGraph models your agent as a graph of nodes and edges with explicit state, durable checkpoints, and first-class human-in-the-loop.

Install

Terminal window
pip install langgraph langchain-anthropic

Version

v1.2.11 · August 2026 · Python 3.10 – 3.14

Best for

Cycles, conditional routing, multi-agent coordination, HITL workflows.

A chaptered tutorial that takes you from a first graph to a production-ready agent. Each chapter has its own page with Next → pagination.

Need one specific concept? Land directly on the chapter that owns it.

The API reference pages below are introspected against the installed langgraph==1.2.11 / langgraph-checkpoint==4.2.0 / langgraph-checkpoint-sqlite==3.0.3 / langgraph-checkpoint-postgres==3.0.5 source. If a signature disagrees with an older blog post or docs page, the source wins.

from langgraph.graph import StateGraph, START, END
from langgraph.checkpoint.memory import InMemorySaver
from typing_extensions import TypedDict
class State(TypedDict):
message: str
response: str
def process(state: State) -> dict:
return {"response": f"Processed: {state['message']}"}
builder = StateGraph(State)
builder.add_node("process", process)
builder.add_edge(START, "process")
builder.add_edge("process", END)
graph = builder.compile(checkpointer=InMemorySaver())
result = graph.invoke(
{"message": "Hello"},
config={"configurable": {"thread_id": "user-1"}},
)
print(result)

Ready for the full walk-through? Start Chapter 1 →


Full per-volume history now lives in git — this table covers meaningfully distinct versions only, oldest to newest.

DateVersionChanges
2025-111.0.3Initial guide: node caching, deferred nodes, pre/post model hooks, cross-thread memory, Python 3.13 support.
2026-04-161.1.6Python 3.9 dropped; type-safe v2 streaming/invoke API; Pydantic/dataclass coercion; Python 3.14 support; time-travel fixes.
2026-04-211.1.8Index redesigned into Zero → Hero chaptered tutorial + Jump-to-topic grid.
2026-04-221.1.9Added six source-verified reference pages (StateGraph, Checkpointers, Store, Functional API, Command/Send, Streaming modes); corrected stale guidance (create_react_agent deprecation, from_conn_string context managers, ShallowPostgresSaver deprecation).
2026-05-121.2.0ToolRuntime and ToolCallTransformer added to langgraph.prebuilt.
2026-05-221.2.1Patch release; all core symbols re-verified.
2026-06-151.2.5v3 streaming protocol (beta) documented: GraphRunStream, SubgraphRunStream, native transformers.
2026-06-231.2.6Deprecation of AgentState/AgentStatePydantic/ValidationNode in favor of langchain.agents; LangGraphDeprecatedSinceV11 added.
2026-07-011.2.7TracePolicy, add_node(defer=True), graph visualization/schema-introspection APIs (get_graph(xray=), as_tool(), get_context_jsonschema()) documented.
2026-07-091.2.8Encrypted checkpoint serde (EncryptedSerializer), serde audit hooks documented.
2026-07-201.2.9RunControl/cooperative draining, RemainingSteps, ToolRuntime execution metadata, TimeoutPolicy refinements.
2026-08-011.2.10Patch release; all core symbols re-verified against the installed source.
2026-08-171.2.11Consolidated the 46 “class deep dive” volumes into one source-verified Class & API Reference section on the single-page guide; removed the per-volume pages and changelog entries (full history remains in git); refreshed all version callouts to langgraph==1.2.11.