langchain
1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
1.6.7 is the newest release of 1.x.
In short
3 new1 fixed1 internal
Release note
Patch Changes
Support concurrent
agentNodedynamic prompts properly.Don't re-emit input state from middleware hooks that return void
langchain: Add optional
toolsparameter tocountTokensApproximatelyfor more accurate token estimates when tools are bound to a modelagents: Support returning Command from wrapModelCall middleware
Allow
wrapModelCallmiddleware hooks to returnCommandobjects for advanced
control flow (routing, state updates), matching the existingwrapToolCall
pattern. The framework tracks the effective AIMessage through the middleware
chain so outer middleware always receive an AIMessage fromhandler(), even
when an inner middleware returns a Command.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.