@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: Mark Anthropic provider errors as retryable or not
Builds on
stampRetryablein@langchain/coreso the retry middleware can tell a transient failure from a deterministic one. Rate limits are marked retryable; context overflow, invalid tool results, bad credentials, and unknown models non-retryable. Anything else stays unmarked and retries as before.Also forwards a per-call
maxRetriesto the retry loop, so a surrounding retry loop such asmodelRetryMiddlewarecan take over instead of the two multiplying against each other.Errors keep their original class, so
instanceofagainst the@anthropic-ai/sdkerror types is unaffected.
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.