@langchain/anthropic
1.6.6 · 20 Nov 2026MIT2.1M / weekRepositoryHomepagenpmAtom feed
1.6.6 is the newest release of 1.x.
In short
1 new
Release note
Patch Changes
anthropic: Support mid-conversation tool changes. A
SystemMessagecan now carry Anthropic'stool_additionandtool_removalblocks, either bare incontentor wrapped in anon_standardblock, and they reach the provider verbatim. The required beta is added automatically:mid-conversation-tool-changes-2026-07-01for tools named by reference, orinline-tools-2026-09-15when atool_additiondefines a tool by value (tool: { type: "tool_definition", definition }).System content is now narrowed to what Anthropic accepts there.
text,tool_additionandtool_removalare sent; any other block is dropped instead of being forwarded for the provider to reject. A system message left with no content is omitted.
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.