Anthropic Python SDK v1.7.0 Adds Rate Limit Display Names and Tool Runner Updates
sdkaipreviewdeprecationengineer
deprecation feature patch
Anthropic has released version 1.7.0 of its Python SDK, introducing a new display name field for rate limits while deprecating the `group_type` parameter. This update also enhances the tool runner with a `compact_before_next_turn()` method, improving state and failure handling for tools. The release includes several bug fixes for API error handling and client response parsing, alongside various internal chores and documentation updates. These changes primarily affect developers building applications with the Anthropic API in Python.
- →add group with display_name to rate limits, deprecate group_type
- →add compact_before_next_turn() to the tool runner
- →raise an API error for eventstream exception and error frames
- →accept X | Y union types when parsing responses
- →don't raise TypeError for X | Y fields with unknown data
Features (2) ›
- api add group with display_name to rate limits, deprecate group_type
- tools add compact_before_next_turn() to the tool runner
Fixes (5) ›
- bedrock raise an API error for eventstream exception and error frames
- client accept X | Y union types when parsing responses
- client don't raise TypeError for X | Y fields with unknown data
- client join multiple anthropic-beta values with a comma and no space
- tools tidy compact_before_next_turn() state and failure handling
Maintenance (7) ›
- deps require pydantic 1.10 or later
- docs add descriptions for enum values and path parameters
- docs clarify the compaction tool_changes and tool change descriptions
- internal add more unnecessary cast comments
- internal pass strict= to zip() in the MCP tool helpers
- internal remove an unused noqa comment from the model tests
- internal set ruff's target version to Python 3.10
Read the original announcement →
https://github.com/anthropics/anthropic-sdk-python/releases/tag/v1.7.0
Related releases
- Anthropic Claude Code v2.1.277 Updates with AGENTS.md Support and Bug Fixes Claude Code Releases ·
- Anthropic Claude Code v2.1.276 Fixes `400 Input tag` Error Claude Code Releases ·
- Anthropic updates Claude Code with new features, fixes, and usability improvements Claude Code Releases ·
- Anthropic Introduces Life Sciences Verification Program for AI Models Anthropic News ·
- Claude Compliance API adds support for Chrome session transcripts Claude Platform Release Notes ·
- Anthropic Updates Claude Code with Bug Fixes and Minor Enhancements (v2.1.274) Claude Code Releases ·