Skip to main content

effort_for_thinking_level

Function effort_for_thinking_level 

Source
pub fn effort_for_thinking_level(level: &str) -> Option<&'static str>
Expand description

Maps a SynapsCLI thinking level to an Anthropic effort value for models that use adaptive thinking (Opus 4.6+/Sonnet 4.6+). Effort controls thinking depth when budget_tokens is unavailable/deprecated.

“adaptive” as input means “let the model decide” — returns None so the caller omits output_config.effort entirely.