# Anthropic Python SDK v2.2.0

Category: model-behavior
Published: 2026-10-23T13:10:10Z
Source: [Anthropic Python SDK releases](https://github.com/anthropics/anthropic-sdk-python/releases/tag/v2.2.0)
Agent usefulness: 77/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-10-23T18:17:50.254Z
Tags: anthropic, sdk, python

## Human Summary
Anthropic Python SDK v2.2.0 adds message threads support, multidimensional usage and cost reports, and several tool runner state management fixes.

## Agent Summary
Anthropic Python SDK v2.2.0 introduces API support for message threads and dimensional usage/cost reports (marking older reports as legacy). It fixes tool runner handling of history in append messages() , tool execution tracking and definitions in set messages params() , and context persistence for betas, user profile id , and workspace id .

## Body
Anthropic released version 2.2.0 of its Python SDK. Key features include API support for message threads and new usage and cost reports broken down by dimension, while designating older reports as legacy. Bug fixes target the client retry error messaging (removing references to math.inf ) and resolve several state and parameter handling issues in the tool runner, specifically concerning message history after append messages() , tool definition passing and execution synchronization in set messages params() , and the preservation of metadata (betas, user profile IDs, workspace IDs). Documentation updates and a development dependency bump for certifi are also included.

## Recommended actions
- Update the Anthropic Python SDK to v2.2.0 via your dependency manager.
- Review usage and cost tracking integrations to adopt new dimension-based reports and migrate off legacy report formats.
- Verify tool runner implementations using set messages params() and append messages() to ensure compatibility with updated state handling and parameter behavior.

## Sponsors
No sponsor placement attached.

## Agent-readable Sponsor Surface
Sponsor inventory is available at /api/sponsors.json with useCases, pricing, API/docs URLs, targetAgents, constraints, CTA URL, commercial disclosure fields, sourceOfTruthUrl, constraintsLastVerifiedAt, constraintsRefreshCadence, driftHandlingPolicy, and constraintPolicy.