Packages

@langchain/anthropic

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

Your version

1.5.11

21 Sep 2026Where it was published

1.6.6 is the newest release of 1.x.

In short

1 new

Release note

Patch Changes

  • anthropic: Accept a SystemMessage anywhere in the message list. Previously only the first message could be a system message. Anything else threw.

    A system message that isn't first is now sent at its own position. It applies from that point in the conversation onwards, and adding one leaves the prompt cache for the earlier turns intact.

    Two smaller changes come with it. A leading run of two or more SystemMessages now merges into the top-level system field instead of being rejected. System content built from standard content blocks no longer sends the internal block id to the provider.

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.