Skip to content
All news
ReleaseAI-written

anthropic-sdk-python 2.13.0 adds error code field to Batches, deprecates Claude Opus 4.5

The release adds an error code field to Message Batches creation, introduces External Storage support in the Admin API beta, and adds webhook events for external storage failure and recovery.

anthropic-sdk-python 2.13.0 was released on 2026-11-23. The release adds an error code field to Message Batches creation and introduces External Storage support in the Admin API beta. It also deprecates the Claude Opus 4.5 model.

The SDK now includes an error_code field when creating Message Batches through the API. The field returns a numeric code that identifies the failure reason for each batch. Developers can inspect the error_code to programmatically handle batch failures.

External Storage support is added to the Admin API beta, allowing administrators to configure external storage backends. The release also adds webhook events that fire on external storage failure and on recovery, enabling developers to react programmatically. Each webhook payload includes the storage status and a timestamp.

The client library now builds the correct class for tool results that contain unknown values, ensuring proper deserialization. When a tool result includes a value not defined in the schema, the library creates a generic result class to preserve the data. It also stops emitting warnings for retired models by reading the list of deprecated models from generated data.

Claude Opus 4.5 is marked as deprecated and will reach end‑of‑life on January 22, 2027. Documentation clarifies when plugin archive downloads are recorded and who receives a share, and the human_review field description in the API docs is shortened. The clarified documentation specifies that plugin archive download logs are stored on the server and shared with the account owner.