Documentation
¶
Overview ¶
Package effort defines the canonical set of thinking-effort levels and provides per-provider mapping helpers. All provider packages should use this package instead of hard-coding effort strings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BedrockTokens ¶
BedrockTokens maps l to a token budget for Bedrock Claude, which only supports token-based thinking budgets.
func ForAnthropic ¶
ForAnthropic returns the Anthropic output_config effort string for l. Anthropic accepts: low, medium, high, max. Minimal is mapped to low as the closest equivalent.
func ForGemini3 ¶
ForGemini3 returns the Gemini 3 thinking-level string for l. Gemini 3 accepts: minimal, low, medium, high.
func ForOpenAI ¶
ForOpenAI returns the OpenAI reasoning_effort string for l. OpenAI accepts: minimal, low, medium, high, xhigh.
func IsValid ¶
IsValid reports whether s is a recognised thinking_budget effort value. It accepts every Level constant, plain "adaptive", and the "adaptive/<effort>" form.
func IsValidAdaptive ¶
IsValidAdaptive reports whether sub is a valid effort for "adaptive/<sub>".
func ValidNames ¶
func ValidNames() string
ValidNames returns a human-readable list of accepted values, suitable for error messages.
Types ¶
type Level ¶
type Level string
Level represents a thinking effort level.