anthropics/anthropic-sdk-python v2.2.0
anthropics/anthropic-sdk-python
Captured source
source ↗published Oct 23, 2026seen 21hcaptured 20hhttp 200method plain
v2.2.0
Repository: anthropics/anthropic-sdk-python
Tag: v2.2.0
Published: 2026-10-23T13:10:10Z
Prerelease: no
Release notes:
Features
- api: add support for message threads
- api: add usage and cost reports by dimension, mark older reports legacy
Bug Fixes
- client: stop suggesting math.inf in the max_retries error message
- tools: leave the tool runner's history to the caller after
append_messages(), and keep the current reply out of theset_messages_params()callback - tools: keep running the tool runner's function tools when
set_messages_params()givestoolsas definitions, and stop running one it takes out oftools - tools: give the
set_messages_params()callback of a tool runner itstoolsas definitions again - tools: keep a tool runner's
betas,user_profile_idandworkspace_idwhenset_messages_params()leaves them out
Chores
- deps: bump certifi in the dev lockfile
- docs: clarify plugin content scan and validation descriptions
- docs: clarify plugin served_version_pinned and updated_at
- docs: fix usage and cost report examples and ending_at docs
- docs: rate limit model lists vary by organization and workspace