Skip to content

Commit 9c485f6

Browse files
stainless-app[bot]karpetrosyandtmeadowscameron-mcateer
authored
release: 0.77.0 (#1117)
* codegen metadata * feat(api): migrate sending message format in output_config rather than output_format * chore(internal): update `actions/checkout` version * fix(structured outputs): avoid including beta header if `output_format` is missing (#1121) * fix(structured outputs): avoid including beta header if output_format is missing * fix ci * fix condition * chore(ci): upgrade `actions/github-script` * codegen metadata * feat: use output_config for structured outputs * feat(api): api update * feat(api): migrate sending message format in output_config rather than output_format * fix lint * review fixes * more fixes * keep transformed_output_format naming * typo * add a test * test for conflict * do the same for create * feat: add deprecation warning to all calls using output_format * test: add unit tests for output_format -> output_config migration * fix: change warning stack level to 4 for output_format derecation * chore: consolidate warning suppressions in unit test * fix: remove redundant output_config formatting in tool_runner methods --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: karpetrosyan <kar.petrosyanpy@gmail.com> Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Co-authored-by: Cameron McAteer <246350779+cameron-mcateer@users.noreply.github.com> * feat(client): add custom JSON encoder for extended type support * feat(api): add support for Structured Outputs in the Messages API * fix(client): run formatter * fix: remove class causing breaking change (#1333) * release: 0.77.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Co-authored-by: dtmeadows <dmeadows@stainless.com> Co-authored-by: karpetrosyan <kar.petrosyanpy@gmail.com> Co-authored-by: Cameron McAteer <246350779+cameron-mcateer@users.noreply.github.com>
1 parent 9b5ab24 commit 9c485f6

File tree

73 files changed

+2133
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+2133
-194
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2020
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323

2424
- name: Install uv
2525
uses: astral-sh/setup-uv@v5
@@ -41,7 +41,7 @@ jobs:
4141
id-token: write
4242
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v6
4545

4646
- name: Install uv
4747
uses: astral-sh/setup-uv@v5
@@ -57,7 +57,7 @@ jobs:
5757
- name: Get GitHub OIDC Token
5858
if: github.repository == 'stainless-sdks/anthropic-python'
5959
id: github-oidc
60-
uses: actions/github-script@v6
60+
uses: actions/github-script@v8
6161
with:
6262
script: core.setOutput('github_token', await core.getIDToken());
6363

@@ -75,7 +75,7 @@ jobs:
7575
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
7676
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7777
steps:
78-
- uses: actions/checkout@v4
78+
- uses: actions/checkout@v6
7979

8080
- name: Install uv
8181
uses: astral-sh/setup-uv@v5

.github/workflows/claude.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
with:
3737
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3838

39+
# Allow github-actions[bot] to trigger Claude Code Action
40+
allowed_bots: "stainless-app"
41+
3942
# This is an optional setting that allows Claude to read CI results on PRs
4043
additional_permissions: |
4144
actions: read
@@ -47,4 +50,3 @@ jobs:
4750
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
4851
# or https://code.claude.com/docs/en/cli-reference for available options
4952
# claude_args: '--allowed-tools Bash(gh pr:*)'
50-

.github/workflows/create-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
environment: production-release
1515

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818

1919
- uses: stainless-api/trigger-release-please@v1
2020
id: release

.github/workflows/detect-breaking-changes.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: |
1616
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
1717
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v6
1919
with:
2020
# Ensure we can check out the pull request base in the script below.
2121
fetch-depth: ${{ env.FETCH_DEPTH }}

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
environment: production-release
1212

1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v6
1515

1616
- name: Install uv
1717
uses: astral-sh/setup-uv@v5

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
if: github.repository == 'anthropics/anthropic-sdk-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1414

1515
steps:
16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1717

1818
- name: Check release environment
1919
run: |

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.76.0"
2+
".": "0.77.0"
33
}

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 34
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-211390f4627177361550415b571a2b580b18c5882e3c2fc961b527e7b3474b0f.yml
3-
openapi_spec_hash: c93ef3808c58e233b01966ff154f31ce
4-
config_hash: 2438d3dc2e69cd23b9ed60c091eaffa7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-4526612d12e919de063708c05d15b78902b5a52d33a6e3eb45708c562d338b18.yml
3+
openapi_spec_hash: 346bef71688ca79b107cf84bc09249ac
4+
config_hash: 0b96ef87fc0758bbc543ffa8435baa2a

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 0.77.0 (2026-01-29)
4+
5+
Full Changelog: [v0.76.0...v0.77.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.76.0...v0.77.0)
6+
7+
### Features
8+
9+
* **api:** add support for Structured Outputs in the Messages API ([ad56677](https://github.com/anthropics/anthropic-sdk-python/commit/ad5667774ad2e7efd181bcfda03fab3ea50630b9))
10+
* **api:** migrate sending message format in output_config rather than output_format ([af405e4](https://github.com/anthropics/anthropic-sdk-python/commit/af405e473f7cf6091cb8e711264227b9b0508528))
11+
* **client:** add custom JSON encoder for extended type support ([7780e90](https://github.com/anthropics/anthropic-sdk-python/commit/7780e90bd2fe4c1116d59bc0ad543aa609fc643d))
12+
* use output_config for structured outputs ([82d669d](https://github.com/anthropics/anthropic-sdk-python/commit/82d669db652ed3d9aede61fd500fabb291b8f035))
13+
14+
15+
### Bug Fixes
16+
17+
* **client:** run formatter ([2e4ff86](https://github.com/anthropics/anthropic-sdk-python/commit/2e4ff86d7b8bef8fe5c4b7e62bf47dfff79f0577))
18+
* remove class causing breaking change ([#1333](https://github.com/anthropics/anthropic-sdk-python/issues/1333)) ([81ee953](https://github.com/anthropics/anthropic-sdk-python/commit/81ee9533d14f9dc3753a4a1320ea744825b17e92))
19+
* **structured outputs:** avoid including beta header if `output_format` is missing ([#1121](https://github.com/anthropics/anthropic-sdk-python/issues/1121)) ([062077e](https://github.com/anthropics/anthropic-sdk-python/commit/062077e50d182719637403576f59761999b3b2f5))
20+
21+
22+
### Chores
23+
24+
* **ci:** upgrade `actions/github-script` ([34df616](https://github.com/anthropics/anthropic-sdk-python/commit/34df6160ad386a7e8848e3435b22bd18bd726702))
25+
* **internal:** update `actions/checkout` version ([ea50de9](https://github.com/anthropics/anthropic-sdk-python/commit/ea50de95bd1e43b8f00a45ef472330a3c8b396c8))
26+
327
## 0.76.0 (2026-01-13)
428

529
Full Changelog: [v0.75.0...v0.76.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.75.0...v0.76.0)

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ from anthropic.types import (
4545
DocumentBlockParam,
4646
ImageBlockParam,
4747
InputJSONDelta,
48+
JSONOutputFormat,
4849
Message,
4950
MessageCountTokensTool,
5051
MessageDeltaUsage,
5152
MessageParam,
5253
MessageTokensCount,
5354
Metadata,
5455
Model,
56+
OutputConfig,
5557
PlainTextSource,
5658
RawContentBlockDelta,
5759
RawContentBlockDeltaEvent,

0 commit comments

Comments
 (0)