@langchain/anthropic
1.6.6 · 20 Nov 2026MIT2.1M / weekRepositoryHomepagenpmAtom feed
Upgrading @langchain/anthropic From 1.3.15 to 1.6.6
37 releases in betweennotes for 32
- 1+
- change to make
- 0
- advisories fixed
- 17+
- new
- 19+
- fixes
Counted from 32 of 37 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking1.6.4
Release by release
- Fixed
Set
finish_reason(thestop_reason),normalized_finish_reasonandfinish_stateinresponse_metadataoninvokeand streamed results, and emit them onmessage-finish.refusalandmodel_context_window_exceededmap torefusalandcontext_exceeded, andpause_turnsetsfinish_state: "suspended".
- Fixed
- Fixed
Fall back to
tool_callsinAnthropicToolsOutputParsersowithStructuredOutputworks when streamed content is normalized totool_callblocks
- Fixed
- Breaking
Require Zod 4.6.6 or newer for installed dependencies to exclude versions affected by GHSA-mrhx-c7xc-m3w5. Zod v3 schemas remain supported through the bundled
zod/v3entry point.
- Breaking
- Fixed
anthropic: Surface model refusals as
ModelRefusalError
- Fixed
- New
Support Claude Fable 5.2 and Mythos 5.2 profiles, always-on adaptive thinking, and the nameless computer toolset. Upgrade the Anthropic SDK and avoid forced tool choice for always-on thinking models.
- Fixed
Report streamed usage from the cumulative
message_deltausage, aslangchain-anthropicdoes, so input and cache tokens from server tool passes (e.g. web search) are counted and output tokens aren't double counted.
- New
- Fixed
anthropic: Keep streamed
server_tool_useinput when replaying messages
- Fixed
- New
Stream tool-call args as
tool-call-deltaslices
- New
- New
anthropic: Declare mid-conversation support in model profiles. Claude Opus 4.8, Opus 5, Opus 5.5, Sonnet 5.5, Haiku 5.5, Fable 5 and 5.1, and Mythos 5 and 5.1 set
midConversationSystemMessagesandmidConversationTools. Sonnet 5 sets system messages only.
- New
10 internal lines (docs, tests, tooling) left out.
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.