Documentation
¶
Overview ¶
Demonstrates WithEffort: opencode encodes reasoning depth as a `/<variant>` suffix on a model id (e.g. "anthropic/claude-opus-4-7/high"). WithEffort maps an abstract level (None/Low/Medium/High/Max) to whatever variant the chosen model exposes, with sensible fallback when the requested level is unavailable.
go run ./examples/effort
Click to show internal directories.
Click to hide internal directories.