org.llm4s.llmconnect.model.ReasoningEffort
See theReasoningEffort companion object
Represents the level of reasoning effort to request from the LLM.
Different providers implement reasoning in different ways:
- OpenAI o1/o3 models: Uses
reasoning_effortparameter - Anthropic Claude: Uses extended thinking with
budget_tokens
For non-reasoning models, this setting is silently ignored.
Attributes
- Example
-
import org.llm4s.llmconnect.model._ // Use high reasoning for complex tasks val options = CompletionOptions().withReasoning(ReasoningEffort.High) // Parse from string val effort = ReasoningEffort.fromString("medium") - Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article