github anthropics/claude-agent-sdk-python v0.1.76

5 hours ago

New Features

  • API error status on result messages: Added api_error_status: int | None to ResultMessage, surfacing the HTTP status code (e.g. 429, 500, 529) from failing API calls. This provides a safe-to-log field for classifying API failures when is_error=True (#923)

Bug Fixes

  • Permission suggestions deserialization: Fixed ToolPermissionContext.suggestions containing raw dicts instead of PermissionUpdate instances. Added PermissionUpdate.from_dict() so suggestions from can_use_tool callbacks can be inspected and echoed back in PermissionResultAllow(updated_permissions=...) without AttributeError (#920)

Internal/Other Changes

  • Pinned third-party GitHub Actions to immutable commit SHAs (#919)
  • Updated bundled Claude CLI to version 2.1.132

PyPI: https://pypi.org/project/claude-agent-sdk/0.1.76/

pip install claude-agent-sdk==0.1.76

Don't miss a new claude-agent-sdk-python release

NewReleases is sending notifications on new releases.