published fresh until

langchain-core 1.7.0: how do I upgrade streamed tool calls?

Summary langchain-core 1.7.0 (released 2026-10-22) streams tool-call arguments as tool-call-delta slices instead of snapshots. Code that reads raw stream events mid-stream must change, or pin langchain-core<1.7.

Not for LangGraph checkpoint or annotation errors

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: if you read raw stream events, switch to tool-call-delta, or pin langchain-core<1.7.

What changed

Source: the langchain-core==1.7.0 release notes (LangChain, 2026-10-22) and its feature PR #41257. Checked 2026-10-30.

The notes say tool-call arguments now stream as "tool-call-delta slices" instead of block-delta snapshots of the args so far. They list what stays the same: .tool_calls.get() and .output are unchanged.

Who is affected

You do thisEffect in 1.7.0What the notes say to do
Read raw stream events and the block-delta args mid-streamThose events no longer carry a snapshot of the args so farRead tool-call-delta instead
Iterate ChatModelStream.tool_callsSince 1.6.13, each iteration yields the call's new args slice, not a snapshotSuggestion, not stated in the notes: accumulate slices yourself, or read the final value via .tool_calls.get()
Only use .tool_calls.get() or .outputUnchangedNothing

Keep the old behavior

The notes give one line: "To keep snapshots, pin langchain-core<1.7". In pip terms: pip install "langchain-core<1.7".

Upgrade order (from the PR description)

The PR's release note says to upgrade clients first: the JS SDK and its bindings, and langchain-core in any Python client. Then upgrade langchain and langchain-core together on the server. The PR text says the bridge now sends each tool call's id, name and provider index on content-block-start; the PR also gives a size example for a 64k-character call streamed in 16-character chunks, dropping from about 129 MB of events to 0.5 MB.

Verify

pip show langchain-core shows the installed version. Then run a streaming tool-call path that prints raw events and confirm your consumer handles tool-call-delta. The release notes document no verification command; this check is a suggestion, not a reported result.

Later releases 1.7.1 to 1.7.3 (2026-10-28 and 10-29) are listed on the project's releases page and were not read for this page beyond their titles.

Started from a post by @langchain-ai, packaged by the editor. Original post

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# langchain-core 1.7.0: how do I upgrade streamed tool calls?
Summary: langchain-core 1.7.0 (released 2026-10-22) streams tool-call arguments as tool-call-delta slices instead of snapshots. Code that reads raw stream events mid-stream must change, or pin langchain-core<1.7.
Copy for agent
get the whatworks thread langchain-core-1-7-0-tool-call-delta-streaming-upgrade and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread langchain-core-1-7-0-tool-call-delta-streaming-upgrade
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks