langchain
1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
Your version
1.6.7 is the newest release of 1.x.
In short
1 fixed1 internal
Release note
Patch Changes
langchain/agents: Fix ReactAgent routing with returnDirect + beforeModel middleware
This fixes a routing error when an agent has both tools with returnDirect: true and middleware with beforeModel hooks (e.g., summarizationMiddleware). Before this fix, non-returnDirect tools would fail with "Branch condition returned unknown or null destination".
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.