New Features
- API error status on result messages: Added
api_error_status: int | NonetoResultMessage, 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 whenis_error=True(#923)
Bug Fixes
- Permission suggestions deserialization: Fixed
ToolPermissionContext.suggestionscontaining raw dicts instead ofPermissionUpdateinstances. AddedPermissionUpdate.from_dict()so suggestions fromcan_use_toolcallbacks can be inspected and echoed back inPermissionResultAllow(updated_permissions=...)withoutAttributeError(#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