ReleaseAnthropicAnthropicpublished Oct 23, 2026seen 21h

anthropics/anthropic-sdk-python v2.2.0

anthropics/anthropic-sdk-python

Open original ↗

Captured source

source ↗
published Oct 23, 2026seen 21hcaptured 21hhttp 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 the set_messages_params() callback
  • tools: keep running the tool runner's function tools when set_messages_params() gives tools as definitions, and stop running one it takes out of tools
  • tools: give the set_messages_params() callback of a tool runner its tools as definitions again
  • tools: keep a tool runner's betas, user_profile_id and workspace_id when set_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