// AI Platform Drift

LangChain core 1.7.0 changes tool-call streaming event structure

LangChain releases · published 2026-10-23 17:09 UTC
ACTION NEEDED MIGRATE API
WHAT CHANGEDlangchain-core 1.7.0, released 2026-10-22, replaces block-delta snapshots with tool-call-delta slices for streaming tool-call arguments. ChatModelStream.tool_calls iteration now yields each call's new args slice instead of cumulative snapshots. The .tool_calls.get() and .output methods remain unchanged.
WHY IT MATTERSCode that reads raw stream events and accesses block-delta args mid-stream will receive incomplete data or break. Iterating ChatModelStream.tool_calls now returns incremental deltas, not the full argument state, breaking any logic that expects complete arguments at each iteration step.
WHAT TO DOSearch your codebase for raw stream event consumers that access block-delta args or iterate ChatModelStream.tool_calls. Update them to read tool-call-delta events instead, or pin langchain-core<1.7 in your requirements before upgrading.
Model-reported confidence 95% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## langchain-core==1.7.0
+https://github.com/langchain-ai/langchain/releases/tag/langchain-core%3D%3D1.7.0
+2026-10-22T17:48:17Z
+
+Changes since langchain-core==1.6.13
+release(core): 1.7.0 (#41418)
+feat(core): emit tool-call-delta for streamed tool-call args (#41257)
+Notes
+
+Tool-call args now stream as tool-call-delta slices instead of block-delta snapshots of the args so far. If you read raw stream events and their block-delta args mid-stream, read tool-call-delta instead. .tool_calls.get() and .output are unchanged. To keep snapshots, pin langchain-core<1.7.
+Since 1.6.13, iterating ChatModelStream.tool_calls yields each call's new args slice, not a snapshot of the args so far.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningStream event structure changed; code reading raw tool-call args mid-stream must migrate to tool-call-delta.
signalsbreaking API change to stream event structure · tool-call-delta replaces block-delta for streamed args · migration path provided (pin langchain-core<1.7) · affects raw stream event consumers · ChatModelStream.tool_calls iteration behavior changed
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)