# Anthropic Python SDK v1.7.0

Category: model-behavior
Published: 2026-09-18T16:12:53Z
Source: [Anthropic Python SDK releases](https://github.com/anthropics/anthropic-sdk-python/releases/tag/v1.7.0)
Agent usefulness: 82/100
Confidence: 0.96
Content mode: release-watch
Verified: 2026-09-19T00:17:20.053Z
Tags: anthropic, sdk, python

## Human Summary
Anthropic Python SDK v1.7.0 adds tool compaction before next turns, updates rate limit structures, and resolves multiple client-side typing and bedrock error handling bugs.

## Agent Summary
Anthropic Python SDK v1.7.0 introduces compact before next turn() to the tool runner with state/failure handling fixes, deprecates rate limit group type in favor of group with display name, requires pydantic = 1.10, and improves parsing of union types ( X | Y ) and Bedrock eventstream error frames.

## Body
Anthropic Python SDK v1.7.0 was released with updates to tools, rate limits, and parsing behavior. Key features include adding compact before next turn() to the tool runner along with associated state and failure handling cleanups, and deprecating the rate limit group type in favor of group with display name. Bug fixes address Bedrock eventstream exceptions raising API errors, response parsing support for X | Y union types (preventing TypeError on unknown data), and formatting multiple anthropic-beta header values with comma separation and no spaces. Dependencies were updated to require pydantic 1.10 or later.

## Recommended actions
- Upgrade anthropic to version 1.7.0.
- Verify pydantic version is 1.10 or later.
- Update rate limit parsing logic to use the new group with display name format instead of the deprecated group type.
- Evaluate the new compact before next turn() method if managing tool runner turn state.

## 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.