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

_26 commits._

### Features
- **feat(api): add compaction parameter and signed compaction blocks (beta)** (8689179)
- **feat(api): add url_sources to the web fetch tool** (4ba7115)
- **feat(api): add thinking_mismatch_allowed entries to input_transformations (beta)** (14d1792)
- **feat(api): add enum types for workspace data-residency geo fields** (3dc6dbf)
- **feat(client): support async credential token providers** (95e93f7)
- **feat(api): add workspace_id parameter to user profiles methods** (1c359b2)

### Fixes
- **fix(api): use one input transformation type for message and delta event** (ae86d7d)
- **fix(api): mark usage iteration model as nullable** (520d000)
- **fix(client): honor Retry-After values above 60 seconds** (2d03ba2)
- **fix(client): retry connection errors in the async client and stop blocking in the coroutine retry loop** (909d92f)
- **fix(client): use the default backoff when Retry-After is out of range** (3d15f04)

### Backend
- **Merge pull request #1937 from anthropics/release-please--branches--main--changes--next** (7e5ca5c)
- **release: 1.6.0** (b93968b)
- **codegen metadata** (66b56d7)
- **codegen metadata** (bd14a06)
- **Merge branch 'main' into next** (d7effeb)

### Docs
- **docs(api): clarify usage.iterations entry typing under server-side fallback** (bb06629)
- **docs: use markdown formatting in most docstrings** (25f344f)
- **docs: stop documenting unions with their first variant's description** (7a94250)

### Chore
- **chore(docs): correct the compaction beta's parameter descriptions** (5048c9a)
- **chore(tests): define the model tests' type alias at module level** (98c3a7a)
- **chore(internal): sort the imports in beta_message.py** (0a92f91)
- **chore(tests): stop the mock server without failing a passing test run** (d28aea7)
- **chore(docs): clarify that session_thread_id on tool use events is informational** (2ac7b60)
- **chore(deps): require anyio 4.1 or later** (79b4175)
- **chore(deps): bump aiohttp, pygments and pytest in the dev lockfile** (005ad11)

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