claude-agent-sdk-python
claude-agent-sdk-python copied to clipboard
Export remaining Literal type aliases
Summary
- Export
AssistantMessageError— theLiteralunion used onAssistantMessage.error. - Export
PermissionBehavior— theLiteralunion used onPermissionUpdate.behavior. - Export
PermissionUpdateDestination— theLiteralunion used onPermissionUpdate.destination. - Export
ThinkingDisplay— theLiteralunion used onThinkingConfigAdaptive.displayandThinkingConfigEnabled.display.
All four aliases are already used as field types on publicly-exported classes, but downstream SDK wrappers that want to type-annotate variables with these unions currently have to import from the private claude_agent_sdk.types module. Same shape as #951 (EffortLevel).
Testing
.venv/bin/python -m pytest tests/test_types.py -q.venv/bin/python -m ruff check src/claude_agent_sdk/__init__.py tests/test_types.py.venv/bin/python -m ruff format --check src/claude_agent_sdk/__init__.py tests/test_types.pygit diff --check
It's a small follow-up to #951 (exporting the remaining Literal type aliases in the same spirit), so it should be quick and low-risk to review. Happy to rebase or tweak anything if needed. @ashwin-ant any chance you could take a look when you have a moment? Thanks!