@langchain/anthropic
1.6.6 · 20 Nov 2026MIT2.1M / weekRepositoryHomepagenpmAtom feed
1.6.6 is the newest release of 1.x.
In short
2 fixed
Release note
Patch Changes
anthropic: Convert tool_calls to tool_use blocks when AIMessage content is an empty array
When
AIMessage.contentwas an empty array `` withtool_callspresent, the tool calls were silently dropped during message formatting. This caused Anthropic API requests to fail with a 400 error. The array content branch now appends any tool_calls not already represented in the content array astool_useblocks, matching the behavior of the string content path.Replace retired Anthropic model IDs with active replacements
Update default model in ChatAnthropic from
claude-3-5-sonnet-latesttoclaude-sonnet-4-5-20250929Regenerate model profiles with latest data from models.dev API
Replace retired
claude-3-5-haiku-20241022,claude-3-7-sonnet-20250219,claude-3-5-sonnet-20240620, andclaude-3-5-sonnet-20241022in tests, docstrings, and examples
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.