Anthropic updates Python SDK with streaming, tool-use, and error-handling changes
Version 2.17.0 of the anthropic-sdk-python library introduces new API features, stricter error handling for streams and tools, and performance tweaks. Changes affect analytics, connection errors, and memory handling.
1 source · cross-referenced
- Adds beta analytics list of projects via a new API endpoint
- Tightens error handling for dropped streams and tool-use rejections
- Improves memory usage and performance for streaming and structured outputs
- Updates client behavior for headers, retries, and credential handling
Anthropic released version 2.17.0 of the anthropic-sdk-python library, which includes new API features, bug fixes, and performance improvements. The update adds a beta analytics endpoint for listing projects in the new Projects experience and introduces a new error code, organization_url_fetch_disabled.
Error handling for streaming and tool use has been tightened. When a JSONL stream or mid-stream connection drops, the SDK now raises anthropic.APIConnectionError (or anthropic.APITimeoutError for timeouts) instead of propagating lower-level HTTP errors. Code catching httpx-specific exceptions around batch results or streams should be updated to catch the Anthropic-specific exceptions to avoid breakage.
Tool-use behavior has also changed: when the API refuses a tool’s result, the SDK now passes the API’s full error message to the model, including status, message, error code, request ID, path, type, and details. Additionally, replace_all edits that would exceed the default 256 KiB file size limit are now refused, leaving the file unchanged.
Client-side changes include stricter retry logic: if a response body is dropped and the x-should-retry header is false, the client raises the error after one request instead of retrying. Header handling has been refined so middleware can safely inspect or redact client headers, including credentials, without leaking sensitive data.
Memory and performance updates include preventing unbounded memory growth when types are created per request, stopping memory growth during structured outputs, and enforcing stricter timeouts during environment memory uploads and syncs. The SDK also improves schema handling for fields with $ref, preserving descriptions that were previously lost during schema transformation.
- Dec 3, 2026 · Hugging Face
IBM time-series foundation models now run natively in Confluent’s streaming platform
Trust79 - Dec 3, 2026 · Hugging Face Blog
RadixArk releases DaisyRose-27B, a post-trained agent model with efficiency gains and open-source tooling
Trust79 - Dec 3, 2026 · Hugging Face
Hugging Face researchers propose ML model to predict fine-tuning job duration on shared GPU clusters
Trust79