claude-code-sdk-python/src/claude_code_sdk
Kashyap Murali a774031c34
feat: Add tool permission and hook callbacks support
- Added ToolPermissionCallback type for controlling tool execution
- Added HookCallback type for intercepting tool events
- Added callbacks to ClaudeCodeOptions
- Thread callbacks through InternalClient and ClaudeSDKClient to Query
- Updated Query to handle tool permission requests with new types
- Support both ToolPermissionResponse and dict returns for compatibility
- Added example demonstrating permission control and input modification
- Added comprehensive tests for callbacks functionality
- Fixed NotRequired import for Python 3.11+ compatibility
2025-09-02 15:35:39 -07:00
..
_internal feat: Add tool permission and hook callbacks support 2025-09-02 15:35:39 -07:00
__init__.py feat: Add tool permission and hook callbacks support 2025-09-02 15:35:39 -07:00
_errors.py Remove hardcoded timeout for control messages to match Typescript SDK 2025-07-19 20:43:07 -07:00
client.py feat: Add tool permission and hook callbacks support 2025-09-02 15:35:39 -07:00
py.typed Initial Python SDK import 2025-06-12 00:16:19 -07:00
query.py feat: enable custom transports (#91) 2025-08-19 13:28:42 -07:00
types.py feat: Add tool permission and hook callbacks support 2025-09-02 15:35:39 -07:00