@langchain/anthropic breaking changes
@langchain/anthropic 1.6.7 (December 1, 2026) is its newest release with breaking changes, 3 of them. The first: Behavior changed ChatAnthropic. Every breaking API change we have recorded in @langchain/anthropic on npm: 25 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 1.6.7, released December 1, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
@langchain/anthropic 1.6.7 breaking changes
- Behavior changed
ChatAnthropic
Opus 5.5 and Sonnet 5.5 are always-on thinking models, so an explicit thinking type of disabled is now rejected. Code that disables thinking for these models must remove that setting. github.com - Behavior changed
withStructuredOutput
For Claude Opus 5.5 and Sonnet 5.5, withStructuredOutput no longer forces a tool call because these models always think. Structured output for these models may now come back differently than before. github.com - Default changed
ChatAnthropic
The default model for ChatAnthropic changed from claude-sonnet-4-5-20250929 to claude-sonnet-4-6. Code that relied on the old default must set the model explicitly to keep the previous behavior. github.com
@langchain/anthropic 1.6.4 breaking changes
- Configuration changed
Installed zod must now be version 4.6.6 or newer, which excludes versions affected by GHSA-mrhx-c7xc-m3w5. Zod v3 schemas remain supported through the bundled zod/v3 entry point. github.com
@langchain/anthropic 1.6.2 breaking changes
- Behavior changed
For models with always-on adaptive thinking, tool choice is no longer forced. Code that relied on forced tool calls for those models should check its tool-calling behavior. github.com
@langchain/anthropic 1.6.1 breaking changes
- Signature changed
ChatAnthropicMessages._identifyingParams
Was _identifyingParams(): {max_tokens: number; model: Anthropic.Model; cache_control?: Anthropic.CacheControlEphemeral | null; container?: Anthropic.MessageCreateParamsContainer | null; diagnostics?: Anthropic.DiagnosticsParam | null... npmjs.com - Signature changed
ChatAnthropicMessages.identifyingParams
Was identifyingParams(): {max_tokens: number; model: Anthropic.Model; cache_control?: Anthropic.CacheControlEphemeral | null; container?: Anthropic.MessageCreateParamsContainer | null; diagnostics?: Anthropic.DiagnosticsParam | null... npmjs.com
@langchain/anthropic 1.0.0 breaking changes
- Removed
AnthropicInput.maxTokensToSample
Use maxTokens instead. npmjs.com - Removed
experimental:ChatAnthropicTools
ChatAnthropicTools was removed in @langchain/anthropic 1.0.0 npmjs.com - Removed
experimental:ChatAnthropicToolsCallOptions
ChatAnthropicToolsCallOptions was removed in @langchain/anthropic 1.0.0 npmjs.com - Removed
experimental:ChatAnthropicToolsInput
ChatAnthropicToolsInput was removed in @langchain/anthropic 1.0.0 npmjs.com - Signature changed
AnthropicInput.temperature
Was temperature?: number | null; now temperature?: number. npmjs.com - Signature changed
AnthropicMessagesModelId
Was type AnthropicMessagesModelId = Anthropic.Model | (string & NonNullable<unknown>); now type AnthropicMessagesModelId = Anthropic$1.Model | (string & NonNullable<unknown>). npmjs.com - Signature changed
ChatAnthropicContentBlock
Was type ChatAnthropicContentBlock = AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicToolUseBlockParam | AnthropicToolResultBlockParam | AnthropicDocumentBlockParam | AnthropicThinkingBlockParam |... npmjs.com - Signature changed
ChatAnthropicMessages._generateNonStreaming
Was _generateNonStreaming(messages: BaseMessage[], params: Omit<Anthropic.Messages.MessageCreateParamsNonStreaming | Anthropic.Messages.MessageCreateParamsStreaming, "messages"> & Kwargs, requestOptions: AnthropicRequestOptions)... npmjs.com - Signature changed
ChatAnthropicMessages._identifyingParams
Was _identifyingParams(): {system?: (string | Array<Anthropic.Messages.TextBlockParam>) | undefined; thinking?: Anthropic.Messages.ThinkingConfigParam | undefined; metadata?: Anthropic.Messages.Metadata | undefined; model... npmjs.com - Signature changed
ChatAnthropicMessages.batchClient
Was protected batchClient: Anthropic; now protected batchClient: Anthropic$1. npmjs.com
And 8 more in this version. Sign up to see every change
Related packages
- langchain
- @langchain/core
- @langchain/openai
- @langchain/pinecone
- @langchain/community
- @langchain/langgraph
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.