Skip to content

Export EffortLevel type alias#951

Merged
ashwin-ant merged 1 commit into
anthropics:mainfrom
Jaksenc:codex/export-effort-level
May 14, 2026
Merged

Export EffortLevel type alias#951
ashwin-ant merged 1 commit into
anthropics:mainfrom
Jaksenc:codex/export-effort-level

Conversation

@Jaksenc
Copy link
Copy Markdown
Contributor

@Jaksenc Jaksenc commented May 11, 2026

Summary

  • add a public EffortLevel type alias for Claude effort string levels
  • reuse the alias in AgentDefinition and ClaudeAgentOptions
  • export the alias from the package root for downstream SDK wrappers

Closes #938

Testing

  • .venv/bin/python -m pytest tests/test_types.py -q
  • .venv/bin/python -m ruff check src/claude_agent_sdk/types.py src/claude_agent_sdk/__init__.py tests/test_types.py
  • .venv/bin/python -m ruff format --check src/claude_agent_sdk/types.py src/claude_agent_sdk/__init__.py tests/test_types.py
  • git diff --check

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@694e4f3). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #951   +/-   ##
=======================================
  Coverage        ?   89.09%           
=======================================
  Files           ?       23           
  Lines           ?     3980           
  Branches        ?        0           
=======================================
  Hits            ?     3546           
  Misses          ?      434           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Export EffortLevel as a named TypeAlias from claude_agent_sdk.types

3 participants