Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
5660b52
feat(api): adding support for agent skills
stainless-app[bot] Oct 16, 2025
f13c5bd
chore(api): mark older sonnet models as deprecated
stainless-app[bot] Oct 28, 2025
bf69f4b
release: 1.15.0
stainless-app[bot] Oct 28, 2025
b2bfccc
Merge pull request #244 from anthropics/release-please--branches--mai…
gcemaj Oct 28, 2025
6082754
feat(api): add ability to clear thinking in context management
stainless-app[bot] Oct 28, 2025
368ce71
release: 1.16.0
stainless-app[bot] Oct 29, 2025
3a0275d
Merge pull request #247 from anthropics/release-please--branches--mai…
samj-anthropic Oct 29, 2025
4442022
add test
dtmeadows Oct 31, 2025
3673a82
chore(internal): grammar fix (it's -> its)
stainless-app[bot] Nov 3, 2025
96a1a91
release: 1.17.0
stainless-app[bot] Nov 5, 2025
4e9c5a8
codegen metadata
stainless-app[bot] Nov 13, 2025
fc01187
codegen metadata
stainless-app[bot] Nov 13, 2025
e377608
feat(api): add support for structured outputs beta
stainless-app[bot] Nov 14, 2025
f4266c4
release: 1.18.0
stainless-app[bot] Nov 14, 2025
9c3ce43
codegen metadata
stainless-app[bot] Nov 17, 2025
f79df50
fix(structured outputs): use correct beta header
yjp20 Nov 19, 2025
9d1fca2
release: 1.18.1
stainless-app[bot] Nov 19, 2025
9ea2999
feat(api): adds support for Claude Opus 4.5, Effort, Advance Tool Use…
stainless-app[bot] Nov 24, 2025
0e4a219
release: 1.19.0
stainless-app[bot] Nov 24, 2025
1384bed
migrate utils to separate files
jacobzim-stl Nov 20, 2025
92e4633
add complete ToParam methods
jacobzim-stl Nov 21, 2025
66d8e54
move timeout calculation to client
jacobzim-stl Nov 25, 2025
f72b4cd
don't accumulate stop event
jacobzim-stl Nov 25, 2025
5f48c20
add test
jacobzim-stl Nov 25, 2025
8149d78
small fixes
jacobzim-stl Nov 25, 2025
ff68260
codegen metadata
stainless-app[bot] Nov 27, 2025
68a7a1e
codegen metadata
stainless-app[bot] Dec 3, 2025
5019038
chore(internal): codegen related update
stainless-app[bot] Dec 5, 2025
d526fa2
chore: elide duplicate aliases
stainless-app[bot] Dec 5, 2025
260e76e
fix(mcp): correct code tool API endpoint
stainless-app[bot] Dec 5, 2025
30f4ef4
fix: rename param to avoid collision
stainless-app[bot] Dec 5, 2025
a05e870
codegen metadata
stainless-app[bot] Dec 11, 2025
68d8505
feat(encoder): support bracket encoding form-data object members
stainless-app[bot] Dec 11, 2025
e0689b9
Support API key authentication with AWS Bedrock (#522)
renfredxh Dec 11, 2025
a5a95fe
codegen metadata
stainless-app[bot] Dec 12, 2025
ba0b8ce
chore: add float64 to valid types for RegisterFieldValidator
stainless-app[bot] Dec 18, 2025
c58a2e8
chore(ci): Add Claude Code GitHub Workflow
dtmeadows Dec 19, 2025
6110ade
chore(internal): use different example values for some enums
stainless-app[bot] Jan 7, 2026
4564e38
fix: streaming endpoints should pass through errors correctly
stainless-app[bot] Jan 7, 2026
9ad6c92
chore(client): mark claude-3-5-haiku as deprecated
stainless-app[bot] Jan 12, 2026
aa8d24f
codegen metadata
stainless-app[bot] Jan 14, 2026
5b8498e
fix(client): retain streaming when user sets request body
stainless-app[bot] Jan 14, 2026
649a10a
feat(api): migrate sending message format in output_config rather tha…
stainless-app[bot] Jan 15, 2026
8473bdd
chore(internal): update `actions/checkout` version
stainless-app[bot] Jan 16, 2026
c705a28
fix(docs): add missing pointer prefix to api.md return types
stainless-app[bot] Jan 16, 2026
4d5a823
feat(client): add a convenient param.SetJSON helper
stainless-app[bot] Jan 23, 2026
4d8e891
fix(to-param): remove panics and add cases (#524)
jacobzim-stl Jan 23, 2026
ac34e22
codegen metadata
stainless-app[bot] Jan 23, 2026
16c0bd8
fix(accumulator): revert to marshal accumulator on stop events (#563)
jacobzim-stl Jan 27, 2026
49c3652
chore(client): improve example values
stainless-app[bot] Jan 28, 2026
8d73be9
feat(api): add support for Structured Outputs in the Messages API
stainless-app[bot] Jan 29, 2026
09e977d
release: 1.20.0
stainless-app[bot] Jan 29, 2026
c09db05
chore(ci): remove claude-code-review workflow
dtmeadows Feb 3, 2026
274556a
feat(api): manual updates
stainless-app[bot] Feb 5, 2026
67f7d8d
release: 1.21.0
stainless-app[bot] Feb 5, 2026
65934db
Update CHANGELOG.md (#268)
sara-hannigan Feb 6, 2026
5a2d351
feat(api): enabling fast-mode in claude-opus-4-6
stainless-app[bot] Feb 7, 2026
32c57e7
release: 1.22.0
stainless-app[bot] Feb 7, 2026
f5b4031
codegen metadata
stainless-app[bot] Feb 9, 2026
2db2e5f
fix(encoder): correctly serialize NullStruct
stainless-app[bot] Feb 10, 2026
4794d52
release: 1.22.1
stainless-app[bot] Feb 10, 2026
2b4b040
codegen metadata
stainless-app[bot] Feb 11, 2026
eeb0455
codegen metadata
stainless-app[bot] Feb 11, 2026
b0b37f9
codegen metadata
stainless-app[bot] Feb 12, 2026
1d3d95f
feat(api): Releasing claude-sonnet-4-6
stainless-app[bot] Feb 17, 2026
699be49
fix(api): fix spec errors
stainless-app[bot] Feb 17, 2026
74cade4
fix: remove duplicate ServerToolUseBlock struct declaration (#595)
packyg Feb 17, 2026
5d85772
release: 1.23.0
stainless-app[bot] Feb 17, 2026
0258e36
feat(api): manual updates
stainless-app[bot] Feb 18, 2026
a380414
release: 1.24.0
stainless-app[bot] Feb 18, 2026
2666499
codegen metadata
stainless-app[bot] Feb 18, 2026
8eaaf7d
codegen metadata
stainless-app[bot] Feb 18, 2026
030bc93
feat(api): fix shared UserLocation and error code types
stainless-app[bot] Feb 18, 2026
1ec20dd
release: 1.25.0
stainless-app[bot] Feb 18, 2026
bb4eef8
fix(client): use correct format specifier for header serialization
stainless-app[bot] Feb 18, 2026
810d31b
release: 1.25.1
stainless-app[bot] Feb 19, 2026
aeafa3d
feat(client): add BetaToolRunner for automatic tool use loops (#603)
renfredxh Feb 19, 2026
04189ba
chore(internal): codegen related update
stainless-app[bot] Feb 19, 2026
e49644f
feat(api): Add top-level cache control (automatic caching)
stainless-app[bot] Feb 19, 2026
4d66933
release: 1.26.0
stainless-app[bot] Feb 19, 2026
63879b0
Merge remote-tracking branch 'anthropics/main' into fantasy
kylecarbs Feb 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup go
uses: actions/setup-go@v5
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup go
uses: actions/setup-go@v5
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/claude.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Claude Code

on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
pull_request_review:
types: [submitted]

jobs:
claude:
if: |
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
actions: read # Required for Claude to read CI results on PRs
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Run Claude Code
id: claude
uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}

# This is an optional setting that allows Claude to read CI results on PRs
additional_permissions: |
actions: read

# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
# prompt: 'Update the pull request description to include a summary of changes.'

# Optional: Add claude_args to customize behavior and configuration
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
# or https://code.claude.com/docs/en/cli-reference for available options
# claude_args: '--allowed-tools Bash(gh pr:*)'

2 changes: 1 addition & 1 deletion .github/workflows/create-releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
environment: production-release

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- uses: stainless-api/trigger-release-please@v1
id: release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/detect-breaking-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: |
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV

- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
# Ensure we can check out the pull request base in the script below.
fetch-depth: ${{ env.FETCH_DEPTH }}
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.14.0"
".": "1.26.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 26
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-c91c0b5257f197335770ca7195d6b56e5808bf90d40580ca833095dfe56d2954.yml
openapi_spec_hash: 592d90505082223899e0638ad56ba162
config_hash: 24ad78f46908cfe5b81c053facaf4194
configured_endpoints: 34
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-29a6b7ba51942cd606e5bf4b533e5aac1bef42f6d4b1f7f45f756304cf676782.yml
openapi_spec_hash: 58021ab18daccd5c45a930ffd7d6ab4d
config_hash: 4e204fead5f0af80eb9effa1d1e34dca
178 changes: 178 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,183 @@
# Changelog

## 1.26.0 (2026-02-19)

Full Changelog: [v1.25.1...v1.26.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.25.1...v1.26.0)

### Features

* **api:** Add top-level cache control (automatic caching) ([75f9f70](https://github.com/anthropics/anthropic-sdk-go/commit/75f9f70045587c458ec2e3491b4eb88bc3329e9e))
* **client:** add BetaToolRunner for automatic tool use loops ([#603](https://github.com/anthropics/anthropic-sdk-go/issues/603)) ([e44128a](https://github.com/anthropics/anthropic-sdk-go/commit/e44128a1a3c1d9b4710b4a024ace8121258b32b6))


### Chores

* **internal:** codegen related update ([6247d2f](https://github.com/anthropics/anthropic-sdk-go/commit/6247d2febe87242ee9d3ba49875ff62a5be9a626))

## 1.25.1 (2026-02-19)

Full Changelog: [v1.25.0...v1.25.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.25.0...v1.25.1)

### Bug Fixes

* **client:** use correct format specifier for header serialization ([9115a61](https://github.com/anthropics/anthropic-sdk-go/commit/9115a6154d0b1ba94370911822986b2ef8584e9a))

## 1.25.0 (2026-02-18)

Full Changelog: [v1.24.0...v1.25.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.24.0...v1.25.0)

### Features

* **api:** fix shared UserLocation and error code types ([cb98cd0](https://github.com/anthropics/anthropic-sdk-go/commit/cb98cd00c359c0181d7b39bdb057e7b06015aa33))

## 1.24.0 (2026-02-18)

Full Changelog: [v1.23.0...v1.24.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.23.0...v1.24.0)

### Features

* **api:** manual updates ([54d01f5](https://github.com/anthropics/anthropic-sdk-go/commit/54d01f5187ef9ec49f803edfe643bf1bf1e91072))

## 1.23.0 (2026-02-17)

Full Changelog: [v1.22.1...v1.23.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.22.1...v1.23.0)

### Features

* **api:** Releasing claude-sonnet-4-6 ([782d5a5](https://github.com/anthropics/anthropic-sdk-go/commit/782d5a5dc4c1f63cfef3afc5d257b08f8cf3fadc))


### Bug Fixes

* **api:** fix spec errors ([15e6a5a](https://github.com/anthropics/anthropic-sdk-go/commit/15e6a5a0b4fb426f126f7b26b087709ea7ba00ac))
* remove duplicate ServerToolUseBlock struct declaration ([#595](https://github.com/anthropics/anthropic-sdk-go/issues/595)) ([d4ece8a](https://github.com/anthropics/anthropic-sdk-go/commit/d4ece8ae310dd0369a5ea05671295ae2c23a53d9))

## 1.22.1 (2026-02-10)

Full Changelog: [v1.22.0...v1.22.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.22.0...v1.22.1)

### Bug Fixes

* **encoder:** correctly serialize NullStruct ([1435f8a](https://github.com/anthropics/anthropic-sdk-go/commit/1435f8ac4d272561c7e689cc6bb4e3794414ba57))

## 1.22.0 (2026-02-07)

Full Changelog: [v1.21.0...v1.22.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.21.0...v1.22.0)

### Features

* **api:** enabling fast-mode in claude-opus-4-6 ([ebe6433](https://github.com/anthropics/anthropic-sdk-go/commit/ebe6433768cab86dcc02b71159aaa347a8d473ec))

## 1.21.0 (2026-02-05)

Full Changelog: [v1.20.0...v1.21.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.20.0...v1.21.0)

### Features

* **api:** Release Claude Opus 4.6, adaptive thinking, and other features ([e899e64](https://github.com/anthropics/anthropic-sdk-go/commit/e899e64cd402eb004909d632e68acc4b0587f53c))


### Chores

* **ci:** remove claude-code-review workflow ([31db702](https://github.com/anthropics/anthropic-sdk-go/commit/31db70249f691b161f326f550dc26cdcce54dd30))

## 1.20.0 (2026-01-29)

Full Changelog: [v1.19.0...v1.20.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.19.0...v1.20.0)

### Features

* **api:** add support for Structured Outputs in the Messages API ([10c3821](https://github.com/anthropics/anthropic-sdk-go/commit/10c382188df98d7b045aec525bdc47f3df25d576))
* **api:** migrate sending message format in output_config rather than output_format ([f996db4](https://github.com/anthropics/anthropic-sdk-go/commit/f996db402bc1f868b11d877014a6c51d977c557f))
* **client:** add a convenient param.SetJSON helper ([427514e](https://github.com/anthropics/anthropic-sdk-go/commit/427514ea6dde81f4eb374967577b5a4cf380f627))
* **encoder:** support bracket encoding form-data object members ([eaaeadf](https://github.com/anthropics/anthropic-sdk-go/commit/eaaeadf6dd67119ca4406f0fb0337c16d9011b8f))


### Bug Fixes

* **accumulator:** revert to marshal accumulator on stop events ([#563](https://github.com/anthropics/anthropic-sdk-go/issues/563)) ([096a8a8](https://github.com/anthropics/anthropic-sdk-go/commit/096a8a8b20b530359c214e06272938bcf8a98c59))
* **client:** retain streaming when user sets request body ([6d073fe](https://github.com/anthropics/anthropic-sdk-go/commit/6d073fe49f351c26c7f3fa8337e661c6a3600c68))
* **docs:** add missing pointer prefix to api.md return types ([23aaf6d](https://github.com/anthropics/anthropic-sdk-go/commit/23aaf6de59f0c13c79dbe4fc1d764b47cfd83834))
* **mcp:** correct code tool API endpoint ([6c8a083](https://github.com/anthropics/anthropic-sdk-go/commit/6c8a0831e6f084d316179a9288c4fa1c5420ea59))
* rename param to avoid collision ([6d1cf75](https://github.com/anthropics/anthropic-sdk-go/commit/6d1cf75d5a407d5eb19c70e3778ab82bca74d0d5))
* streaming endpoints should pass through errors correctly ([e584c87](https://github.com/anthropics/anthropic-sdk-go/commit/e584c87ec001ee8991ca17b8236a6ef3deb78ea7))
* **to-param:** remove panics and add cases ([#524](https://github.com/anthropics/anthropic-sdk-go/issues/524)) ([f689816](https://github.com/anthropics/anthropic-sdk-go/commit/f6898163047854d39cec7c08ec5ab993bab463fc))


### Chores

* add float64 to valid types for RegisterFieldValidator ([b6bec73](https://github.com/anthropics/anthropic-sdk-go/commit/b6bec73c5ed18698884b990fc3dc6398a3784177))
* **ci:** Add Claude Code GitHub Workflow ([a151836](https://github.com/anthropics/anthropic-sdk-go/commit/a151836056343974d15eda64180fc776ba0f169d))
* **client:** improve example values ([8af69b8](https://github.com/anthropics/anthropic-sdk-go/commit/8af69b851f4a60334ed75542c2eacbe69c01893c))
* **client:** mark claude-3-5-haiku as deprecated ([dcac65c](https://github.com/anthropics/anthropic-sdk-go/commit/dcac65c8dd82f232c2997456319c16357874f37b))
* elide duplicate aliases ([c8e2ee1](https://github.com/anthropics/anthropic-sdk-go/commit/c8e2ee14de53b5636eadccb2a890e4464e30b8d4))
* **internal:** codegen related update ([931c976](https://github.com/anthropics/anthropic-sdk-go/commit/931c9769f1ff0557a8eff333463e1847b15f7953))
* **internal:** update `actions/checkout` version ([3bd83ec](https://github.com/anthropics/anthropic-sdk-go/commit/3bd83eca53f1ec0b759c2568601286405821dcbc))
* **internal:** use different example values for some enums ([f2d46b8](https://github.com/anthropics/anthropic-sdk-go/commit/f2d46b87de1a57ed1790cad3134b5e340f22fd73))

## 1.19.0 (2025-11-24)

Full Changelog: [v1.18.1...v1.19.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.18.1...v1.19.0)

### Features

* **api:** adds support for Claude Opus 4.5, Effort, Advance Tool Use Features, Autocompaction, and Computer Use v5 ([a03391c](https://github.com/anthropics/anthropic-sdk-go/commit/a03391cb00b8c78c79fd8bfe447f00d78f37db25))

## 1.18.1 (2025-11-19)

Full Changelog: [v1.18.0...v1.18.1](https://github.com/anthropics/anthropic-sdk-go/compare/v1.18.0...v1.18.1)

### Bug Fixes

* **structured outputs:** use correct beta header ([09ec0a6](https://github.com/anthropics/anthropic-sdk-go/commit/09ec0a647b1a108bb7c74e4c7b1016502ca781bb))

## 1.18.0 (2025-11-14)

Full Changelog: [v1.17.0...v1.18.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.17.0...v1.18.0)

### Features

* **api:** add support for structured outputs beta ([fb9cfb4](https://github.com/anthropics/anthropic-sdk-go/commit/fb9cfb4e4b571d5fec7da9874610aa8820aee80c))


### Chores

* bump gjson version ([69b5e0e](https://github.com/anthropics/anthropic-sdk-go/commit/69b5e0e40757884bece66397fb6ca769f4e00118))

## 1.17.0 (2025-11-05)

Full Changelog: [v1.16.0...v1.17.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.16.0...v1.17.0)

### Features

* **bedrock:** re-route beta headers through request body ([00a2bf3](https://github.com/anthropics/anthropic-sdk-go/commit/00a2bf35b34aa49f1514493cf0638b467c4f4eec))


### Chores

* **internal:** grammar fix (it's -> its) ([687bc29](https://github.com/anthropics/anthropic-sdk-go/commit/687bc299cacb84349eb2684df46994c06f9ba962))

## 1.16.0 (2025-10-29)

Full Changelog: [v1.15.0...v1.16.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.15.0...v1.16.0)

### Features

* **api:** add ability to clear thinking in context management ([6082754](https://github.com/anthropics/anthropic-sdk-go/commit/6082754e9b6a04570a93efdb5339853c71f1fe94))

## 1.15.0 (2025-10-28)

Full Changelog: [v1.14.0...v1.15.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.14.0...v1.15.0)

### Features

* **api:** adding support for agent skills ([5660b52](https://github.com/anthropics/anthropic-sdk-go/commit/5660b5252a4de07f3343c9089b148b16cda794d4))


### Chores

* **api:** mark older sonnet models as deprecated ([f13c5bd](https://github.com/anthropics/anthropic-sdk-go/commit/f13c5bd18ebb169c59913985537ca025634ef7eb))

## 1.14.0 (2025-10-15)

Full Changelog: [v1.13.0...v1.14.0](https://github.com/anthropics/anthropic-sdk-go/compare/v1.13.0...v1.14.0)
Expand Down
3 changes: 1 addition & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ $ go mod edit -replace github.com/anthropics/anthropic-sdk-go=/path/to/anthropic
Most tests require you to [set up a mock server](https://github.com/stoplightio/prism) against the OpenAPI spec to run the tests.

```sh
# you will need npm installed
$ npx prism mock path/to/your/openapi.yml
$ ./scripts/mock
```

```sh
Expand Down
Loading
Loading