mirror of
https://github.com/anthropics/claude-code-sdk-python.git
synced 2025-12-23 09:19:52 +00:00
- 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 |
||
|---|---|---|
| .. | ||
| _internal | ||
| __init__.py | ||
| _errors.py | ||
| client.py | ||
| py.typed | ||
| query.py | ||
| types.py | ||