Skip to content

Commit 4de03c2

Browse files
stainless-app[bot]felixfbeckerkarpetrosyancameron-mcateer
authored
release: 0.80.0 (#1173)
* chore(internal): bump dependencies * codegen metadata * Grant Claude workflow write permissions and git access (#1357) * chore(internal): fix lint error on Python 3.14 * codegen metadata * codegen metadata * codegen metadata * chore: format all `api.md` files * refactor(vertex): remove redundant isinstance check in `load_auth` (#1387) * feat(api): Releasing claude-sonnet-4-6 Releasing claude-sonnet-4-6 and GAing advanced tool use features. * fix(api): fix spec errors * fix: remove speed from ga messages (#1402) * release: 0.80.0 --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com> Co-authored-by: Felix Becker <felix.b@outlook.com> Co-authored-by: Kar Petrosyan <92274156+karpetrosyan@users.noreply.github.com> Co-authored-by: Cameron McAteer <246350779+cameron-mcateer@users.noreply.github.com>
1 parent cd1b39b commit 4de03c2

File tree

134 files changed

+3243
-607
lines changed

Some content is hidden

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

134 files changed

+3243
-607
lines changed

.github/workflows/claude.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,34 +19,34 @@ jobs:
1919
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2020
runs-on: ubuntu-latest
2121
permissions:
22-
contents: read
23-
pull-requests: read
24-
issues: read
22+
contents: write
23+
pull-requests: write
24+
issues: write
2525
id-token: write
2626
actions: read # Required for Claude to read CI results on PRs
2727
steps:
2828
- name: Checkout repository
2929
uses: actions/checkout@v4
3030
with:
31-
fetch-depth: 1
31+
fetch-depth: 0
32+
33+
- name: Configure git
34+
run: |
35+
git config user.name "claude[bot]"
36+
git config user.email "209825114+claude[bot]@users.noreply.github.com"
3237
3338
- name: Run Claude Code
3439
id: claude
3540
uses: anthropics/claude-code-action@v1
3641
with:
3742
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
3843

44+
# Allow Claude to run git commands and push changes
45+
allowed_tools: "Bash(git commit:*),Bash(git push:*),Bash(git merge:*),Bash(git checkout:*),Bash(git add:*),Bash(git status:*),Bash(git diff:*),Bash(git log:*),Bash(git fetch:*),Bash(gh pr:*),Bash(gh issue:*)"
46+
3947
# Allow github-actions[bot] to trigger Claude Code Action
4048
allowed_bots: "stainless-app"
4149

4250
# This is an optional setting that allows Claude to read CI results on PRs
4351
additional_permissions: |
4452
actions: read
45-
46-
# Optional: Give a custom prompt to Claude. If this is not specified, Claude will perform the instructions specified in the comment that tagged it.
47-
# prompt: 'Update the pull request description to include a summary of changes.'
48-
49-
# Optional: Add claude_args to customize behavior and configuration
50-
# See https://github.com/anthropics/claude-code-action/blob/main/docs/usage.md
51-
# or https://code.claude.com/docs/en/cli-reference for available options
52-
# claude_args: '--allowed-tools Bash(gh pr:*)'

.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.79.0"
2+
".": "0.80.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-fee5dc365a4948e68639582c5301d4d0666c7d85a11628d7917e1477f76d3da1.yml
3-
openapi_spec_hash: d5543958074cd2bd74096cd69f3bb4f9
4-
config_hash: c4802b6c7f8ffae62f7d73b2ac61e635
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/anthropic%2Fanthropic-6924f88807cb0cad6fcffa77da1c9263ce48d5f7db632dfc842773e3bb1f17e4.yml
3+
openapi_spec_hash: 9cec3bf2e3ee3dbad7447c26c5e579ae
4+
config_hash: 409a17b0a2807d809e958c50c09f9665

CHANGELOG.md

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

3+
## 0.80.0 (2026-02-17)
4+
5+
Full Changelog: [v0.79.0...v0.80.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.79.0...v0.80.0)
6+
7+
### Features
8+
9+
* **api:** Releasing claude-sonnet-4-6 ([d518d6e](https://github.com/anthropics/anthropic-sdk-python/commit/d518d6ecede3d0638f0b14950dc2be8efa0b4ff4))
10+
11+
12+
### Bug Fixes
13+
14+
* **api:** fix spec errors ([1413a76](https://github.com/anthropics/anthropic-sdk-python/commit/1413a76f905e590fab583417f5cb1eef9f537c2c))
15+
* remove speed from ga messages ([#1402](https://github.com/anthropics/anthropic-sdk-python/issues/1402)) ([f6ce67c](https://github.com/anthropics/anthropic-sdk-python/commit/f6ce67c3ed5f2fc4a2fc48fb9d7bc6f1bbb5bd4a))
16+
17+
18+
### Chores
19+
20+
* format all `api.md` files ([28a0eb5](https://github.com/anthropics/anthropic-sdk-python/commit/28a0eb55c031a9ed584eafe7f9096b32f9883e6f))
21+
* **internal:** bump dependencies ([99f3014](https://github.com/anthropics/anthropic-sdk-python/commit/99f301460a3933229768d19fa7ae725072012592))
22+
* **internal:** fix lint error on Python 3.14 ([a90d71b](https://github.com/anthropics/anthropic-sdk-python/commit/a90d71bfcdef5592f0f7f9a176cf347163ee2137))
23+
24+
25+
### Refactors
26+
27+
* **vertex:** remove redundant isinstance check in `load_auth` ([#1387](https://github.com/anthropics/anthropic-sdk-python/issues/1387)) ([6b7a7dc](https://github.com/anthropics/anthropic-sdk-python/commit/6b7a7dce065b7bfbf6c5d8ed41825f36b36fc402))
28+
329
## 0.79.0 (2026-02-07)
430

531
Full Changelog: [v0.78.0...v0.79.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.78.0...v0.79.0)

api.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,15 @@ Types:
2424
from anthropic.types import (
2525
Base64ImageSource,
2626
Base64PDFSource,
27+
BashCodeExecutionOutputBlock,
28+
BashCodeExecutionOutputBlockParam,
29+
BashCodeExecutionResultBlock,
30+
BashCodeExecutionResultBlockParam,
31+
BashCodeExecutionToolResultBlock,
32+
BashCodeExecutionToolResultBlockParam,
33+
BashCodeExecutionToolResultError,
34+
BashCodeExecutionToolResultErrorCode,
35+
BashCodeExecutionToolResultErrorParam,
2736
CacheControlEphemeral,
2837
CacheCreation,
2938
CitationCharLocation,
@@ -34,18 +43,40 @@ from anthropic.types import (
3443
CitationPageLocationParam,
3544
CitationSearchResultLocationParam,
3645
CitationWebSearchResultLocationParam,
46+
CitationsConfig,
3747
CitationsConfigParam,
3848
CitationsDelta,
3949
CitationsSearchResultLocation,
4050
CitationsWebSearchResultLocation,
51+
CodeExecutionOutputBlock,
52+
CodeExecutionOutputBlockParam,
53+
CodeExecutionResultBlock,
54+
CodeExecutionResultBlockParam,
55+
CodeExecutionTool20250522,
56+
CodeExecutionTool20250825,
57+
CodeExecutionToolResultBlock,
58+
CodeExecutionToolResultBlockContent,
59+
CodeExecutionToolResultBlockParam,
60+
CodeExecutionToolResultBlockParamContent,
61+
CodeExecutionToolResultError,
62+
CodeExecutionToolResultErrorCode,
63+
CodeExecutionToolResultErrorParam,
64+
Container,
65+
ContainerUploadBlock,
66+
ContainerUploadBlockParam,
4167
ContentBlock,
4268
ContentBlockParam,
4369
ContentBlockSource,
4470
ContentBlockSourceContent,
71+
DirectCaller,
72+
DocumentBlock,
4573
DocumentBlockParam,
74+
EncryptedCodeExecutionResultBlock,
75+
EncryptedCodeExecutionResultBlockParam,
4676
ImageBlockParam,
4777
InputJSONDelta,
4878
JSONOutputFormat,
79+
MemoryTool20250818,
4980
Message,
5081
MessageCountTokensTool,
5182
MessageDeltaUsage,
@@ -66,6 +97,7 @@ from anthropic.types import (
6697
RedactedThinkingBlock,
6798
RedactedThinkingBlockParam,
6899
SearchResultBlockParam,
100+
ServerToolCaller,
69101
ServerToolUsage,
70102
ServerToolUseBlock,
71103
ServerToolUseBlockParam,
@@ -76,6 +108,17 @@ from anthropic.types import (
76108
TextCitation,
77109
TextCitationParam,
78110
TextDelta,
111+
TextEditorCodeExecutionCreateResultBlock,
112+
TextEditorCodeExecutionCreateResultBlockParam,
113+
TextEditorCodeExecutionStrReplaceResultBlock,
114+
TextEditorCodeExecutionStrReplaceResultBlockParam,
115+
TextEditorCodeExecutionToolResultBlock,
116+
TextEditorCodeExecutionToolResultBlockParam,
117+
TextEditorCodeExecutionToolResultError,
118+
TextEditorCodeExecutionToolResultErrorCode,
119+
TextEditorCodeExecutionToolResultErrorParam,
120+
TextEditorCodeExecutionViewResultBlock,
121+
TextEditorCodeExecutionViewResultBlockParam,
79122
ThinkingBlock,
80123
ThinkingBlockParam,
81124
ThinkingConfigAdaptive,
@@ -90,7 +133,18 @@ from anthropic.types import (
90133
ToolChoiceAuto,
91134
ToolChoiceNone,
92135
ToolChoiceTool,
136+
ToolReferenceBlock,
137+
ToolReferenceBlockParam,
93138
ToolResultBlockParam,
139+
ToolSearchToolBm25_20251119,
140+
ToolSearchToolRegex20251119,
141+
ToolSearchToolResultBlock,
142+
ToolSearchToolResultBlockParam,
143+
ToolSearchToolResultError,
144+
ToolSearchToolResultErrorCode,
145+
ToolSearchToolResultErrorParam,
146+
ToolSearchToolSearchResultBlock,
147+
ToolSearchToolSearchResultBlockParam,
94148
ToolTextEditor20250124,
95149
ToolTextEditor20250429,
96150
ToolTextEditor20250728,
@@ -100,6 +154,14 @@ from anthropic.types import (
100154
URLImageSource,
101155
URLPDFSource,
102156
Usage,
157+
WebFetchBlock,
158+
WebFetchBlockParam,
159+
WebFetchTool20250910,
160+
WebFetchToolResultBlock,
161+
WebFetchToolResultBlockParam,
162+
WebFetchToolResultErrorBlock,
163+
WebFetchToolResultErrorBlockParam,
164+
WebFetchToolResultErrorCode,
103165
WebSearchResultBlock,
104166
WebSearchResultBlockParam,
105167
WebSearchTool20250305,
@@ -241,6 +303,7 @@ from anthropic.types.beta import (
241303
BetaCodeExecutionResultBlockParam,
242304
BetaCodeExecutionTool20250522,
243305
BetaCodeExecutionTool20250825,
306+
BetaCodeExecutionTool20260120,
244307
BetaCodeExecutionToolResultBlock,
245308
BetaCodeExecutionToolResultBlockContent,
246309
BetaCodeExecutionToolResultBlockParam,
@@ -266,6 +329,8 @@ from anthropic.types.beta import (
266329
BetaCountTokensContextManagementResponse,
267330
BetaDirectCaller,
268331
BetaDocumentBlock,
332+
BetaEncryptedCodeExecutionResultBlock,
333+
BetaEncryptedCodeExecutionResultBlockParam,
269334
BetaFileDocumentSource,
270335
BetaFileImageSource,
271336
BetaImageBlockParam,
@@ -312,6 +377,7 @@ from anthropic.types.beta import (
312377
BetaRequestMCPToolResultBlockParam,
313378
BetaSearchResultBlockParam,
314379
BetaServerToolCaller,
380+
BetaServerToolCaller20260120,
315381
BetaServerToolUsage,
316382
BetaServerToolUseBlock,
317383
BetaServerToolUseBlockParam,
@@ -376,9 +442,11 @@ from anthropic.types.beta import (
376442
BetaURLImageSource,
377443
BetaURLPDFSource,
378444
BetaUsage,
445+
BetaUserLocation,
379446
BetaWebFetchBlock,
380447
BetaWebFetchBlockParam,
381448
BetaWebFetchTool20250910,
449+
BetaWebFetchTool20260209,
382450
BetaWebFetchToolResultBlock,
383451
BetaWebFetchToolResultBlockParam,
384452
BetaWebFetchToolResultErrorBlock,
@@ -387,6 +455,7 @@ from anthropic.types.beta import (
387455
BetaWebSearchResultBlock,
388456
BetaWebSearchResultBlockParam,
389457
BetaWebSearchTool20250305,
458+
BetaWebSearchTool20260209,
390459
BetaWebSearchToolRequestError,
391460
BetaWebSearchToolResultBlock,
392461
BetaWebSearchToolResultBlockContent,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "anthropic"
3-
version = "0.79.0"
3+
version = "0.80.0"
44
description = "The official Python library for the anthropic API"
55
dynamic = ["readme"]
66
license = "MIT"

requirements-dev.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@
33
-e .
44
annotated-types==0.7.0
55
# via pydantic
6-
anyio==4.12.0
6+
anyio==4.12.1
77
# via
88
# anthropic
99
# httpx
1010
asttokens==3.0.1
1111
# via inline-snapshot
1212
backports-asyncio-runner==1.2.0 ; python_full_version < '3.11'
1313
# via pytest-asyncio
14-
boto3-stubs==1.41.5
15-
botocore-stubs==1.41.6
14+
boto3-stubs==1.42.44
15+
botocore-stubs==1.42.41
1616
# via boto3-stubs
17-
certifi==2025.11.12
17+
certifi==2026.1.4
1818
# via
1919
# httpcore
2020
# httpx
@@ -49,13 +49,13 @@ idna==3.11
4949
# via
5050
# anyio
5151
# httpx
52-
importlib-metadata==8.7.0
52+
importlib-metadata==8.7.1
5353
iniconfig==2.1.0 ; python_full_version < '3.10'
5454
# via pytest
5555
iniconfig==2.3.0 ; python_full_version >= '3.10'
5656
# via pytest
5757
inline-snapshot==0.31.1
58-
jiter==0.12.0
58+
jiter==0.13.0
5959
# via anthropic
6060
markdown-it-py==3.0.0 ; python_full_version < '3.10'
6161
# via rich
@@ -66,11 +66,11 @@ mdurl==0.1.2
6666
mypy==1.17.0
6767
mypy-extensions==1.1.0
6868
# via mypy
69-
nodeenv==1.9.1
69+
nodeenv==1.10.0
7070
# via pyright
7171
packaging==25.0
7272
# via pytest
73-
pathspec==0.12.1
73+
pathspec==1.0.3
7474
# via mypy
7575
pluggy==1.6.0
7676
# via pytest
@@ -88,7 +88,7 @@ pytest==8.4.2 ; python_full_version < '3.10'
8888
# inline-snapshot
8989
# pytest-asyncio
9090
# pytest-xdist
91-
pytest==9.0.1 ; python_full_version >= '3.10'
91+
pytest==9.0.2 ; python_full_version >= '3.10'
9292
# via
9393
# inline-snapshot
9494
# pytest-asyncio
@@ -101,21 +101,21 @@ python-dateutil==2.9.0.post0 ; python_full_version < '3.10'
101101
respx==0.22.0
102102
rich==14.2.0
103103
# via inline-snapshot
104-
ruff==0.14.7
104+
ruff==0.14.13
105105
six==1.17.0 ; python_full_version < '3.10'
106106
# via python-dateutil
107107
sniffio==1.3.1
108108
# via anthropic
109109
time-machine==2.19.0 ; python_full_version < '3.10'
110-
time-machine==3.1.0 ; python_full_version >= '3.10'
111-
tomli==2.3.0 ; python_full_version < '3.11'
110+
time-machine==3.2.0 ; python_full_version >= '3.10'
111+
tomli==2.4.0 ; python_full_version < '3.11'
112112
# via
113113
# inline-snapshot
114114
# mypy
115115
# pytest
116-
types-awscrt==0.29.1
116+
types-awscrt==0.31.1
117117
# via botocore-stubs
118-
types-s3transfer==0.15.0
118+
types-s3transfer==0.16.0
119119
# via boto3-stubs
120120
typing-extensions==4.15.0
121121
# via

scripts/format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ uv run ruff check --fix .
1111
uv run ruff format
1212

1313
echo "==> Formatting docs"
14-
uv run python scripts/utils/ruffen-docs.py README.md api.md
14+
uv run python scripts/utils/ruffen-docs.py README.md $(find . -type f -name api.md)

src/anthropic/_utils/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def is_union(tp: Optional[Type[Any]]) -> bool:
2626
else:
2727
import types
2828

29-
return tp is Union or tp is types.UnionType
29+
return tp is Union or tp is types.UnionType # type: ignore[comparison-overlap]
3030

3131

3232
def is_typeddict(tp: Type[Any]) -> bool:

src/anthropic/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "anthropic"
4-
__version__ = "0.79.0" # x-release-please-version
4+
__version__ = "0.80.0" # x-release-please-version

0 commit comments

Comments
 (0)