## anthropics/anthropic-sdk-python — v1.6.0…v1.7.0

_23 commits._

### Features
- **feat(api): add group with display_name to rate limits, deprecate group_type** (28f0a83)
- **feat(tools): add compact_before_next_turn() to the tool runner (#641)** (8b23fb3)

### Fixes
- **fix(tools): tidy compact_before_next_turn() state and failure handling (#804)** (d3a9fc8)
- **fix(client): join multiple anthropic-beta values with a comma and no space (#781)** (1680324)
- **fix(client): accept `X | Y` union types when parsing responses** (b366fa5)
- **fix(client): don't raise TypeError for `X | Y` fields with unknown data** (30ebd69)
- **fix(bedrock): raise an API error for eventstream exception and error frames (#769)** (8ec9cc9)

### Backend
- **Merge pull request #1939 from anthropics/release-please--branches--main--changes--next** (0af0190)
- **release: 1.7.0** (a096a48)
- **codegen metadata** (5b4202a)
- **codegen metadata** (182a764)
- **codegen metadata** (9d2d579)
- **codegen metadata** (e7dd41e)
- **codegen metadata** (351de0c)
- **codegen metadata** (5921735)
- **Merge branch 'main' into next** (09d7208)

### Chore
- **chore(docs): add descriptions for enum values and path parameters** (99184dc)
- **chore(deps): require pydantic 1.10 or later** (91931e1)
- **chore(docs): clarify the compaction tool_changes and tool change descriptions** (eacc0ff)
- **chore(internal): remove an unused noqa comment from the model tests** (2c18298)
- **chore(internal): set ruff's target version to Python 3.10** (2bdfd41)
- **chore(internal): pass strict= to zip() in the MCP tool helpers** (13cfe64)
- **chore(internal): add more unnecessary cast comments** (9e6ce27)

_Recap by [Repo Wrapped](https://repowrapped.com/gh/anthropics/anthropic-sdk-python?utm_source=github-action)._