v0.87.0

anthropic-sdk-python Releases / 4/1/2026

📰 NewsDeveloper Stack & Infrastructure

Key Points

  • anthropicsのPython SDK(v0.87.0)で、APIStatusErrorにエラー種別(error type)フィールドが追加され、エラー解析がしやすくなりました。
  • クエリ/フォームのシリアライズで「indices配列形式」が実装され、複雑なパラメータ送信の整合性が改善されています。
  • asyncのtransform経路でapi_excludeを正しく反映し、メモリ機能ではパス解決結果の返却やメモリファイルの権限(restrictive file mode)設定が強化されています。
  • エンドポイントのパスパラメータをサニタイズし、transformスキーマ側でenumのサポートが追加されました。
  • CIやテスト実行条件、依存ライブラリ(steady)更新などのメンテナンス作業も行われています。

0.87.0 (2026-03-31)

Full Changelog: v0.86.0...v0.87.0

Features

  • client: add error type field to APIStatusError (#1587) (dd563c0)
  • internal: implement indices array format for query and form serialization (11a6244)

Bug Fixes

  • honor api_exclude in async transform path (#1612) (8172232), closes #1610
  • memory: return resolved path from async _validate_path (7b0add3)
  • memory: use restrictive file mode for memory files (47ba5b8)
  • sanitize endpoint path params (98f60e4)
  • transform schema: support enums (#1275) (5c088ab)

Chores

  • ci: run builds on CI even if only spec metadata changed (194c050)
  • ci: skip lint on metadata-only changes (03e2ab9)
  • internal: update gitignore (94ede14)
  • tests: bump steady to v0.19.4 (2d6d58f)
  • tests: bump steady to v0.19.5 (8fb439a)
  • tests: bump steady to v0.19.6 (76da5fd)
  • tests: bump steady to v0.19.7 (bfa40e5)
  • tests: bump steady to v0.20.1 (4fd9446)