Anthropic Python SDK v1.6.0 Released with AI Tooling & API Enhancements
sdkaipreviewengineer
feature patch
Version 1.6.0 of the Anthropic Python SDK introduces several new API features and client-side improvements. These updates enhance tool usage for Managed Agents, add beta features like compaction and `thinking_mismatch_allowed` for input transformations, and improve credential handling and retry logic. Developers using the Anthropic Python SDK, particularly those building applications with Managed Agents or requiring advanced API functionalities, are affected by these changes. The release includes beta features for compaction and input transformations, alongside various bug fixes.
- →add auto mode tool permissions for Managed Agents
- →add compaction parameter and signed compaction blocks (beta)
- →add enum types for workspace data-residency geo fields
- →add thinking_mismatch_allowed entries to input_transformations (beta)
- →add url_sources to the web fetch tool
Features (7) ›
- api add auto mode tool permissions for Managed Agents
- api add compaction parameter and signed compaction blocks (beta)
- api add enum types for workspace data-residency geo fields
- api add thinking_mismatch_allowed entries to input_transformations (beta)
- api add url_sources to the web fetch tool
- api add workspace_id parameter to user profiles methods
- client support async credential token providers
Fixes (6) ›
- api mark usage iteration model as nullable
- api use one input transformation type for message and delta event
- client honor Retry-After values above 60 seconds
- client ignore invalid Retry-After values and validate maxRetries
- client retry connection errors in the async client and stop blocking in the coroutine retry loop
- client use the default backoff when Retry-After is out of range
Maintenance (10) ›
- deps bump aiohttp, pygments and pytest in the dev lockfile
- deps require anyio 4.1 or later
- docs clarify that session_thread_id on tool use events is informational
- docs correct the compaction beta's parameter descriptions
- internal sort the imports in beta_message.py
- tests define the model tests' type alias at module level
- tests stop the mock server without failing a passing test run
- api clarify usage.iterations entry typing under server-side fallback
- stop documenting unions with their first variant's description
- use markdown formatting in most docstrings
Read the original announcement →
https://github.com/anthropics/anthropic-sdk-python/releases/tag/v1.6.0
Related releases
- Claude API Adds On-Demand Conversation Compaction to Messages API Claude Platform Release Notes ·
- Anthropic adds Salesforce plugin to Claude in beta Claude Release Notes ·
- Anthropic Claude claude-haiku-4-5-20251001 reaches end of life in 30 days endoflife.date ·
- Anthropic's Claude Code v2.1.272 Delivers Bug Fixes and Reliability Improvements Claude Code Releases ·
- Anthropic Claude Code v2.1.271 Enhances Fast Mode, Sandboxing, and Fixes Bugs Claude Code Releases ·
- Anthropic's Claude Code v2.1.270 fixes Git command permission bug Claude Code Releases ·