Packages

@langchain/anthropic

1.6.6 · 20 Nov 2026MIT2.1M / weekRepositoryHomepagenpmAtom feed

Your version

1.5.12

1 Oct 2026Where it was published

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 SystemMessage can now carry Anthropic's tool_addition and tool_removal blocks, either bare in content or wrapped in a non_standard block, and they reach the provider verbatim. The required beta is added automatically: mid-conversation-tool-changes-2026-07-01 for tools named by reference, or inline-tools-2026-09-15 when a tool_addition defines a tool by value (tool: { type: "tool_definition", definition }).

    System content is now narrowed to what Anthropic accepts there. text, tool_addition and tool_removal are 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.