Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.75.0"
".": "0.75.1"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 0.75.1 (2025-11-30)

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

### Chores

* fix docstring ([51fca79](https://github.com/anthropics/anthropic-sdk-python/commit/51fca7942b4e74e1357fb72828e8e39a8b8eea6a))
* update uv.lock ([746ac05](https://github.com/anthropics/anthropic-sdk-python/commit/746ac05cbb18c7d596a381e2fe89d0ee3e4e94b9))

## 0.75.0 (2025-11-24)

Full Changelog: [v0.74.1...v0.75.0](https://github.com/anthropics/anthropic-sdk-python/compare/v0.74.1...v0.75.0)
Expand Down
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "anthropic"
version = "0.75.0"
version = "0.75.1"
description = "The official Python library for the anthropic API"
dynamic = ["readme"]
license = "MIT"
Expand All @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Operating System :: POSIX",
"Operating System :: MacOS",
Expand Down Expand Up @@ -76,7 +77,8 @@ pydantic-v1 = [
"pydantic>=1.9.0,<2",
]
pydantic-v2 = [
"pydantic>=2,<3",
"pydantic~=2.0 ; python_full_version < '3.14'",
"pydantic~=2.12 ; python_full_version >= '3.14'",
]

[build-system]
Expand Down
88 changes: 54 additions & 34 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,37 +3,40 @@
-e .
annotated-types==0.7.0
# via pydantic
anyio==4.8.0
anyio==4.11.0
# via
# anthropic
# httpx
asttokens==3.0.0
asttokens==3.0.1
# via inline-snapshot
boto3-stubs==1.40.69
botocore-stubs==1.40.69
backports-asyncio-runner==1.2.0 ; python_full_version < '3.11'
# via pytest-asyncio
boto3-stubs==1.41.4
botocore-stubs==1.41.4
# via boto3-stubs
certifi==2024.12.14
certifi==2025.11.12
# via
# httpcore
# httpx
colorama==0.4.6
# via
# griffe
# pytest
dirty-equals==0.9.0
dirty-equals==0.11
distro==1.9.0
# via anthropic
docstring-parser==0.17.0
# via anthropic
exceptiongroup==1.2.2 ; python_full_version < '3.11'
exceptiongroup==1.3.1 ; python_full_version < '3.11'
# via
# anyio
# pytest
execnet==2.1.1
execnet==2.1.2
# via pytest-xdist
executing==2.2.1
# via inline-snapshot
griffe==1.13.0
griffe==1.14.0 ; python_full_version < '3.10'
griffe==1.15.0 ; python_full_version >= '3.10'
h11==0.16.0
# via httpcore
httpcore==1.0.9
Expand All @@ -42,76 +45,93 @@ httpx==0.28.1
# via
# anthropic
# respx
idna==3.10
idna==3.11
# via
# anyio
# httpx
importlib-metadata==8.6.1
iniconfig==2.0.0
importlib-metadata==8.7.0
iniconfig==2.1.0 ; python_full_version < '3.10'
# via pytest
iniconfig==2.3.0 ; python_full_version >= '3.10'
# via pytest
inline-snapshot==0.31.1
jiter==0.12.0
# via anthropic
markdown-it-py==3.0.0
markdown-it-py==3.0.0 ; python_full_version < '3.10'
# via rich
markdown-it-py==4.0.0 ; python_full_version >= '3.10'
# via rich
mdurl==0.1.2
# via markdown-it-py
mypy==1.14.1
mypy-extensions==1.0.0
mypy==1.18.2
mypy-extensions==1.1.0
# via mypy
nodeenv==1.9.1
# via pyright
packaging==24.2
packaging==25.0
# via pytest
pluggy==1.5.0
pathspec==0.12.1
# via mypy
pluggy==1.6.0
# via pytest
pydantic==2.10.3
pydantic==2.12.4
# via anthropic
pydantic-core==2.27.1
pydantic-core==2.41.5
# via pydantic
pygments==2.19.1
pygments==2.19.2
# via
# pytest
# rich
pyright==1.1.399
pytest==8.4.1
pytest==8.4.2 ; python_full_version < '3.10'
# via
# inline-snapshot
# pytest-asyncio
# pytest-xdist
pytest==9.0.1 ; python_full_version >= '3.10'
# via
# inline-snapshot
# pytest-asyncio
# pytest-xdist
pytest-asyncio==0.24.0
pytest-xdist==3.7.0
python-dateutil==2.9.0.post0
pytest-asyncio==1.2.0 ; python_full_version < '3.10'
pytest-asyncio==1.3.0 ; python_full_version >= '3.10'
pytest-xdist==3.8.0
python-dateutil==2.9.0.post0 ; python_full_version < '3.10'
# via time-machine
respx==0.22.0
rich==13.9.4
rich==14.2.0
# via inline-snapshot
ruff==0.9.4
six==1.17.0
ruff==0.14.6
six==1.17.0 ; python_full_version < '3.10'
# via python-dateutil
sniffio==1.3.1
# via
# anthropic
# anyio
time-machine==2.16.0
tomli==2.2.1 ; python_full_version < '3.11'
time-machine==2.19.0 ; python_full_version < '3.10'
time-machine==3.1.0 ; python_full_version >= '3.10'
tomli==2.3.0 ; python_full_version < '3.11'
# via
# inline-snapshot
# mypy
# pytest
types-awscrt==0.28.2
types-awscrt==0.29.0
# via botocore-stubs
types-s3transfer==0.14.0
types-s3transfer==0.15.0
# via boto3-stubs
typing-extensions==4.12.2
typing-extensions==4.15.0
# via
# anthropic
# anyio
# boto3-stubs
# exceptiongroup
# mypy
# pydantic
# pydantic-core
# pyright
# rich
zipp==3.21.0
# pytest-asyncio
# typing-inspection
typing-inspection==0.4.2
# via pydantic
zipp==3.23.0
# via importlib-metadata
11 changes: 7 additions & 4 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ function run_tests() {
echo "==> Running tests with Pydantic v2"
uv run --isolated --all-extras pytest "$@"

echo "==> Running tests with Pydantic v1"
uv run --isolated --all-extras --group=pydantic-v1 pytest "$@"
# Pydantic v1 does not support Python 3.14, skip these tests
if [[ "$UV_PYTHON" != "3.14" ]]; then
echo "==> Running tests with Pydantic v1"
uv run --isolated --all-extras --group=pydantic-v1 pytest "$@"
fi
}

# If UV_PYTHON is already set in the environment, just run the command once
Expand All @@ -71,6 +74,6 @@ else
echo "==> Running tests for Python 3.9"
UV_PYTHON=3.9 run_tests "$@"

echo "==> Running tests for Python 3.13"
UV_PYTHON=3.13 run_tests "$@"
echo "==> Running tests for Python 3.14"
UV_PYTHON=3.14 run_tests "$@"
fi
2 changes: 1 addition & 1 deletion src/anthropic/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "anthropic"
__version__ = "0.75.0" # x-release-please-version
__version__ = "0.75.1" # x-release-please-version
4 changes: 2 additions & 2 deletions src/anthropic/lib/tools/_beta_compaction_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
class CompactionControl(TypedDict, total=False):
context_token_threshold: int
"""The context token threshold at which to trigger compaction.

When the cumulative token count (input + output) across all messages exceeds this threshold,
the message history will be automatically summarized and compressed. Defaults to 150,000 tokens.
the message history will be automatically summarized and compressed. Defaults to 100,000 tokens.
"""

model: str
Expand Down
Loading
Loading