ReferencesThe Agent Framework
LangChain & LangGraph
The standard way to build something that reasons, calls tools and remembers.
LangChain & LangGraph at a glance
- `create_agent` — the standard entry point, built on LangGraph.
- Persistence — conversations checkpoint and survive across sessions.
- Streaming of tokens, tool calls and reasoning traces in real time.
- Human-in-the-loop — pause an agent for approval before a sensitive action.
- Time travel — rewind a conversation and explore an alternate path.
- Middleware for model routing, retries, summarisation and policy.
What it is
An agent is a loop: think, choose a tool, run it, feed the result back, decide again. LangChain is the set of building blocks for that loop, and LangGraph is the engine that runs it — a graph of nodes with explicit edges, where every step can be checkpointed, retried or interrupted.
The v1 line deliberately narrowed the surface. `create_agent` is now the standard way to build an agent, and it replaces the older prebuilt React agent; the long tail of legacy functionality moved into `langchain-classic` rather than being deleted.
How it works
Because `create_agent` runs on LangGraph, an agent gets persistence, streaming, human-in-the-loop and time travel without any extra wiring. A conversation is checkpointed as it goes, so a restart resumes where it left off and a human can approve a step before it happens.
- LangChain 1.5 adds decision models and decision-driven middleware — typed, probabilistic answers about text, messages and structured state.
- Model routing middleware selects a model per run from the configured choices.
- LangGraph 1.2 adds per-node timeouts, a `DeltaChannel` that stores only the incremental change per step, and a content-block streaming protocol with typed per-channel projections.
- Python 3.11 is the floor: LangChain 1.5 and langchain-core 1.8 dropped Python 3.10.
Under the hood
| Piece | What it is |
|---|---|
| langchain | 1.5.0 — the agent framework and its middleware |
| langchain-core | 1.8 — the primitives shared across the ecosystem |
| langgraph | 1.2.0 — the graph runtime, checkpoints and streaming |
| Agent entry point | create_agent, replacing langgraph.prebuilt.create_react_agent |
| Streaming | version="v3" — typed projections for values, messages, lifecycle and subgraphs |
| Minimum Python | 3.11 |