Skip to content

feat(anthropic): add Claude Opus 5 support - #11255

Merged
Hunter Lovell (hntrl) merged 2 commits into
mainfrom
hunter/anthropic-opus-5
Jul 24, 2026
Merged

Hunter Lovell (hntrl) merged 2 commits into
mainfrom
hunter/anthropic-opus-5

Conversation

@hntrl

Copy link
Copy Markdown
Member

Summary

Adds claude-opus-5 support to @langchain/anthropic and updates the Anthropic SDK to the latest compatible release

Changes

@langchain/anthropic

  • Register Opus 5 defaults and generated capability metadata, including its 1M-token context window and 128K maximum output.
  • Treat Opus 5 as adaptive-thinking-only: reject legacy fixed thinking budgets and unsupported sampling controls.
  • Reject disabled thinking at xhigh or max effort, while continuing to allow it through high effort.
  • Add unit coverage for default request behavior and compatibility validation, plus a live low-effort Opus 5 invocation test.
  • Upgrade @anthropic-ai/sdk from ^0.103.0 to ^0.115.0

@changeset-bot

changeset-bot Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 10a65bf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@langchain/anthropic Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@socket-security

socket-security Bot commented Jul 24, 2026 •

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​anthropic-ai/​sdk@​0.103.0 ⏵ 0.115.06610091 +4100 +1100

View full report

@open-swe open-swe Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open SWE Review found 1 potential issue.

Open in Web • View Open SWE trace

Comment thread libs/providers/langchain-anthropic/src/profiles.ts
Signed-off-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com>
@hntrl
Hunter Lovell (hntrl) merged commit c8bd4c4 into main Jul 24, 2026
35 checks passed
@hntrl
Hunter Lovell (hntrl) deleted the hunter/anthropic-opus-5 branch July 24, 2026 18:52
Hunter Lovell (hntrl) pushed a commit that referenced this pull request Jul 24, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## langchain@1.5.4

### Patch Changes

- [#11201](#11201)
[`a8cd4d9`](a8cd4d9)
Thanks [@hntrl](https://github.com/hntrl)! - feat(langchain): add
middleware for handling tool execution errors
## @langchain/anthropic@1.5.2

### Patch Changes

- [#11255](#11255)
[`c8bd4c4`](c8bd4c4)
Thanks [@hntrl](https://github.com/hntrl)! - feat(anthropic): add
claude-opus-5 support

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants