Repository navigation
v0.14.2
Added
EFFORT_LEVELSconstant exposing%w[low medium high xhigh max]. Consumers can referenceClaudeAgentSDK::EFFORT_LEVELSfor validation instead of hard-coding the list.xhigheffort level: documented in the SDK to match the Claude Code CLI (2.1.111+). Supported on Opus 4.7; the CLI auto-falls-back to the highest supported level on older models (e.g.xhigh→highon Opus 4.6).
Changed
- Inline comments and README updated to reference
ClaudeAgentSDK::EFFORT_LEVELSrather than a stale hard-coded level list.
Usage
# Validate effort against the exported constant instead of a hard-coded list
raise ArgumentError unless ClaudeAgentSDK::EFFORT_LEVELS.include?(level)
options = ClaudeAgentSDK::ClaudeAgentOptions.new(effort: 'xhigh') # Opus 4.7New contributor
A warm welcome to @chagel (mgc) — their first contribution to the project landed in #20, bringing the Ruby SDK in line with Claude Code CLI 2.1.111+. Thank you! 🎉
What's changed
Full Changelog: v0.14.1...v0.14.2
gem install claude-agent-sdk -v 0.14.2