langchain
1.6.7 · 18 Nov 2026MIT4.2M / weekRepositoryHomepagenpmAtom feed
1.6.7 is the newest release of 1.x.
In short
2 fixed
Release note
Patch Changes
langchain: Exclude middleware-internal model calls from the message projection
Bookkeeping model calls made by
summarizationMiddlewareandtoolEmulatorMiddlewareno longer appear inrun.messagesorstream({ streamMode: "messages" }), and the summarysummarizationMiddlewarewrites back to state is no longer projected as a new message. These calls remain observable viastreamEvents({ version: "v2" }), identified bylc_source.Apply [Symbol.hasInstance] method to all comparable properties using .isInstance()
We have some internal schemas that rely on
z.instanceof(). This uses a strictinstanceofcheck which can conflict if there are multiple versions of core installed. This overrides the Symbol.hasInstance method to use the same logic as.isInstance()to compare objects at runtime.
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.