anthropic Anthropic Python SDK Releases · · 1.7.0

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