Packages
LangGraph 1.2.25: Live Tool Streaming, Pre-Save Message IDs, and Upgrade Guide
Technical breakdown of LangGraph 1.2.25 (released Dec 1, 2026; 59M monthly PyPI downloads, 45.6K GitHub stars): public StreamMode 'tools' typing, standalone tool-event streaming, pre-persistence message IDs, and safe uv/pip upgrade guidance.
8 min read
LangGraph 1.2.25: Live Tool Streaming, Pre-Save Message IDs, and Upgrade Guide
Executive Summary
LangGraph (langgraph on PyPI, Python >=3.10, MIT license) released 1.2.25 on December 1, 2026—verified as of December 2, 2026. Built by LangChain Inc. as a low-level, Pregel-inspired state-machine orchestration framework for long-running AI agents, LangGraph remains the most widely downloaded Python agent framework at 59 million monthly PyPI downloads (per November 2026 telemetry) and 45,674 GitHub stars.
Version 1.2.25 focuses on streaming ergonomics, state-persistence determinism, and dependency hygiene rather than breaking public APIs:
- Public
"tools"Stream Mode: PR#9778adds"tools"to the publicStreamModetype annotation, while PR#9779fixes standalonestream_mode="tools"execution so tool lifecycle events stream live without requiring a second mode alongside it. - Pre-Persistence Message IDs: PR
#9772assigns IDs toadd_messageswrites andStateGraphinput messages before checkpoints are saved, eliminating duplicate-message edge cases during replay andinterrupt()recovery. - Internal Cleanup & Dependencies: PR
#9775replaces raw"__root__"channel strings with aROOTconstant, and PR#9533bundles 8 minor/patch dependency updates.
Confidence Assessment: High for PyPI metadata (1.2.25, Python >=3.10, MIT, GitHub stars/forks), official GitHub release notes (#9968), and LangGraph streaming documentation. Medium for exact post-1.2.25 runtime latency overhead, as no independent benchmark suite has published comparative numbers specifically for 1.2.25 since yesterday's release.
Adoption Telemetry & Version Changelog
PyPI & GitHub Telemetry (Verified December 2, 2026)
| Metric | Verified Value | Source & Date |
|---|---|---|
| Package & Ecosystem | langgraph (Python >=3.10, PyPI) |
PyPI (Dec 2, 2026) |
| Latest Version | 1.2.25 (Signed release commit c8a9bdd) |
GitHub Releases (Dec 1, 2026) |
| Monthly PyPI Downloads | ~59M / month (Nov 2026) vs. ~44M / month (Oct 2026) |
Firecrawl (Nov 30) / Speakeasy (Nov 9) / OpenWOP (Oct 4) |
| GitHub Repository | 45,674 stars · 7,916 forks · 47K+ dependents |
PyPI / GitHub |
| License | MIT (shifted from early 0.0.25 proprietary license) |
PyPI 1.2.25 vs. PyPI 0.0.25 |
Notice the adoption trajectory across late 2026: monthly PyPI downloads grew from roughly 44 million in early October 2026 to 59 million in November 2026, while the companion LangGraph ecosystem packages—langgraph-checkpoint (4.3.2), langgraph-checkpoint-postgres (3.2.1), langgraph-prebuilt (1.1.3), and langgraph-cli (0.4.44, released Nov 25, 2026)—continue to ship independently on coordinated minor cadences.
Recent Release Milestones (1.2.21 – 1.2.25)
According to GitHub Releases and Open Orchestrators' release audit:
- Strict Resume & Per-Interrupt IDs (
1.2.16–1.2.24): Eachinterrupt()call inside a task now receives its own ID so retried nodes do not misapply an earlier human answer to a subsequent prompt, while strict resume rejects stale interrupt payloads instead of silently ignoring them. - Faster Long-Thread Checkpoints:
DeltaChannelsnapshot frequency tightened from every1,000updates to every100updates (snapshot_frequency=1000preserves legacy behavior), trading modest storage growth for faster state reads on long-running threads. Send& Tool State Parity (1.2.23, Nov 19, 2026): Tool calls dispatched viaSendnow receive the same state view as standard graph edges, paired withlanggraph-prebuilt==1.1.3.- PostgreSQL Checkpointer (
3.2.1, Nov 14, 2026): Skips the async saver's lock when backed by connection pools and executes standalone store reads outside a pipeline. - Streaming & Message ID Determinism (
1.2.25, Dec 1, 2026): Formalizes"tools"inStreamMode, fixes standalonestream_mode="tools"live streaming, and assigns message IDs before checkpoint writes.
Security Patches, Breaking Changes & Internals
Dependency Hygiene & Supply-Chain Footprint
Version 1.2.25 includes PR #9533 (chore(deps): bump the minor-and-patch group across 1 directory with 8 updates). While no standalone CVE/GHSA ID is listed in the 1.2.25 release summary itself, keeping transitive minor/patch dependencies current is critical for production agent servers that expose HTTP/SSE endpoints or deserialize untrusted tool outputs. Additionally, the release tag (c8a9bdd) is signed with GitHub's verified GPG key (B5690EEEBB952194), allowing strict CI/CD provenance checks.
Note an important historical license detail when auditing older lockfiles: early 0.0.x releases (such as langgraph 0.0.25 from February 2024) carried Other/Proprietary License (LangGraph License), whereas modern 1.x releases—including 1.2.25—are cleanly licensed under MIT on PyPI.
Internals: What Changed in 1.2.25
Three targeted commits in 1.2.25 resolve subtle production bugs that previously forced workarounds in streaming UIs and multi-turn chat histories:
- Standalone
stream_mode="tools"(#9778,#9779): LangGraph's streaming system supportsvalues,updates,messages,custom,tools, anddebug. Previously, requestingstream_mode="tools"by itself failed to stream tool lifecycle events live (on_tool_start,on_tool_event,on_tool_end,on_tool_error) and"tools"was missing from the publicStreamModetype alias—causing static type checkers (mypy/pyright) to flag valid code. Both are fixed in1.2.25. - Pre-Save Message IDs (
#9772): Whenadd_messagesreducers orStateGraphinputs lacked explicit IDs until after checkpoint serialization, replaying or resuming an interrupted node could assign fresh UUIDs and duplicate messages in client state. Assigning IDs before saving guarantees stable message identity across checkpoints, time-travel forks, and human-in-the-loop resumes. ROOTChannel Constant (#9775): Internal graph compilation now references a sharedROOTconstant instead of hardcoded"__root__"strings, reducing typo risk for contributors extendingpregelinternals.
Streaming v2 Type Narrowing & SDK Stream Reconnects
To get full value from stream_mode="tools" in production, teams should pair langgraph==1.2.25 with the version="v2" stream output format documented in LangChain's Python Streaming guide. Under v2, every yielded chunk is a typed StreamPart dictionary containing "type" and "data" keys. Instead of unpacking positional tuples or inspecting ad-hoc dictionary shapes when combining multiple modes (such as ["updates", "tools", "custom"]), mypy and pyright narrow chunk["data"] automatically inside if chunk["type"] == "tools": branches.
For deployments behind reverse proxies, load balancers, or rolling Kubernetes pods, the companion langgraph-sdk (0.4.12+) also closes a longstanding streaming reliability gap: if an HTTP/SSE stream closes mid-run due to a proxy timeout or server restart, the SDK now checks the run status and reconnects automatically while the run remains pending or active rather than returning a silently truncated response. Combined with langgraph-sdk 0.4.13's select parameter on threads.get_state and get_history, API servers can avoid deserializing large state keys on every UI poll.
Production Trade-Offs: Raw SDK vs. LangGraph vs. High-Abstraction Frameworks
Before adopting or upgrading LangGraph, engineering leads should weigh three architectural trade-offs highlighted across Anas Rabhi's 2026 comparison and GitHub framework churn notes:
- Versus Raw Provider SDKs (
openai,anthropic): If your application makes only a handful of linear LLM calls without cyclic retries or human-in-the-loop pauses, raw provider SDKs deliver simpler stack traces and lower abstraction overhead. - Versus Role-Based Frameworks (
CrewAI): Role/backstory abstractions accelerate initial prototypes, but hide exact system prompts, message ordering, and turn-by-turn LLM call counts. LangGraph exposes every state transition and reducer explicitly. - Subgraph & Namespace Overhead: Multi-agent graphs using nested subgraphs stream
(namespace, data)tuples whensubgraphs=Trueis enabled, requiring frontends to parse namespace paths (("parent_node:<task_id>", "child_node:<task_id>")) cleanly.
Updated Usage Example (stream_mode="tools" + version="v2")
from typing import TypedDict, Annotated
from langgraph.graph import StateGraph, START, END
from langgraph.graph.message import add_messages
from langgraph.types import StreamMode
class AgentState(TypedDict):
messages: Annotated[list, add_messages]
# Stream standalone tool-call lifecycle events cleanly in 1.2.25
mode: StreamMode = "tools"
async def run_stream(graph, user_input: dict, config: dict):
async for chunk in graph.astream(
user_input,
config=config,
stream_mode=mode,
version="v2",
):
if chunk["type"] == "tools":
print(chunk["data"])
Notice that StreamMode = "tools" now passes strict type checking out of the box, and add_messages assigns deterministic message IDs before the checkpointer commits the state.
Ecosystem Comparison & Upgrade Checklist
Python Agent Framework Comparison (Verified Q4 2026)
Data below is compiled from Speakeasy (Nov 9, 2026), Firecrawl (Nov 30, 2026), and PyPI:
| Framework | Latest Verified Version | Monthly PyPI Downloads | GitHub Stars | Best-Fit Architecture |
|---|---|---|---|---|
| LangGraph | 1.2.25 (Dec 1, 2026) |
~59M / mo |
45.6K |
Stateful, cyclic graphs, durable checkpoints, HITL interrupts, streaming |
| Claude Agent SDK (Python) | 0.2.181 (Nov 2026) |
~36M / mo |
8.5K |
Anthropic-native tool loops & coding/harness agents |
| PydanticAI | 0.24.0 (Nov 2026) |
~19M / mo |
30.6K |
Type-safe dependency injection & structured output validation |
| Google ADK (Python) | 2.14.1 (Nov 2026) |
~10.7M / mo |
22.2K |
Multi-language (Python/TS/Java/Go/Kotlin) Gemini-aligned agents |
| Microsoft Agent Framework | 1.26.0 (Nov 2026) |
~1.6M / mo |
14.7K |
Successor to AutoGen (AutoGen entered maintenance in Q1 2026) |
Safe Upgrade & Pinning Checklist
- Verify Python Floor: Confirm your runtime is Python 3.10 or newer (
Requires: Python >=3.10). - Pin Paired Packages Together: If you deploy with
langgraph-cli,langgraph-prebuilt, orlanggraph-checkpoint-postgres, upgrade and lock them together inpyproject.toml/uv.lock:uv add "langgraph==1.2.25" "langgraph-prebuilt>=1.1.3" "langgraph-checkpoint>=4.3.2" - Audit
DeltaChannelStorage Growth: If upgrading from pre-1.2.16versions with long-running threads, benchmark PostgreSQL/SQLite checkpoint table growth under the newer 100-update snapshot cadence (snapshot_frequency=1000reverts to legacy frequency if needed). - Remove
"tools"Stream Workarounds: If your frontend or FastAPI SSE adapter previously passedstream_mode=["updates", "tools"]just to force tool events to flush, test switching tostream_mode="tools"directly.
Frequently Asked Questions
1. Are there any breaking API changes in LangGraph 1.2.25?
No breaking public API changes were introduced in 1.2.25 (the ROOT constant refactor is internal). However, if you use add_messages with custom replay logic, verify that your downstream code expects message IDs to be populated before checkpoint persistence.
2. Why did stream_mode="tools" fail to stream live before 1.2.25?
Prior to PR #9779, passing stream_mode="tools" alone did not emit tool lifecycle events in real time unless paired with another stream mode, and "tools" was omitted from the public StreamMode typing alias (#9778).
3. Does LangGraph 1.2.25 require LangChain?
No. While LangChain's create_agent runs on top of LangGraph, the LangGraph repository explicitly notes that langgraph can be used standalone without installing or importing langchain.
4. What is the minimum Python version for LangGraph 1.2.25?
PyPI metadata for langgraph 1.2.25 specifies Python >=3.10 (MIT license).
5. Should teams choose LangGraph or PydanticAI in late 2026?
Choose LangGraph (59M/mo downloads) when you need cyclic state machines, durable PostgreSQL checkpointing, subgraph time travel, and interrupt() human-in-the-loop workflows. Choose PydanticAI (19M/mo downloads) when you want lightweight, strongly typed dependency injection without graph boilerplate.
Sources
- PyPI (
langgraph) — langgraph 1.2.25 Package Metadata (https://pypi.org/project/langgraph/) — Accessed Dec 2, 2026 (Python >=3.10,MIT,45,674stars). - GitHub (
langchain-ai/langgraph) — Releases:langgraph==1.2.25(https://github.com/langchain-ai/langgraph/releases) — Released Dec 1, 2026 (07:36 AM). - LangChain Official Documentation — LangGraph Streaming Capabilities (
https://docs.langchain.com/oss/python/langgraph/streamingandhttps://docs.langchain.com/oss/javascript/langgraph/streaming) — Updated Nov 24, 2026. - Firecrawl — The best open source frameworks for building AI agents in 2026 (
https://www.firecrawl.dev/blog/best-open-source-agent-frameworks) — Published Nov 30, 2026. - Speakeasy — Choosing an agent framework in 2026: LangGraph, CrewAI, PydanticAI, Google ADK (
https://www.speakeasy.com/blog/ai-agent-framework-comparison) — Published Nov 9, 2026. - Open Orchestrators — LangGraph 1.2.16 to 1.2.24 Release Audit (
https://openorchestrators.org/news/langgraph-1-2-24-strict-resume-stream-reconnects/) — Published Nov 24, 2026.