ReasoningEffort

org.llm4s.llmconnect.model.ReasoningEffort
See theReasoningEffort companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case object High extends ReasoningEffort

High reasoning effort. Maximum reasoning for complex tasks requiring deep thinking.

High reasoning effort. Maximum reasoning for complex tasks requiring deep thinking.

Provider mapping:

  • OpenAI o1/o3: reasoning_effort: "high"
  • Anthropic: ~32768 budget tokens for thinking

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
High.type
case object Low extends ReasoningEffort

Low reasoning effort. For tasks requiring slight deliberation but not deep analysis.

Low reasoning effort. For tasks requiring slight deliberation but not deep analysis.

Provider mapping:

  • OpenAI o1/o3: reasoning_effort: "low"
  • Anthropic: ~2048 budget tokens for thinking

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Low.type
case object Medium extends ReasoningEffort

Medium reasoning effort. Balanced quality vs latency for moderately complex tasks.

Medium reasoning effort. Balanced quality vs latency for moderately complex tasks.

Provider mapping:

  • OpenAI o1/o3: reasoning_effort: "medium"
  • Anthropic: ~8192 budget tokens for thinking

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
Medium.type
case object None extends ReasoningEffort

No extra reasoning - standard completion. Use for simple tasks where extended reasoning adds unnecessary latency.

No extra reasoning - standard completion. Use for simple tasks where extended reasoning adds unnecessary latency.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
None.type

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete methods

Get the default thinking budget tokens for Anthropic models.

Get the default thinking budget tokens for Anthropic models.

Value parameters

effort

the reasoning effort level

Attributes

Returns

number of budget tokens, 0 for None

def fromString(s: String): Option[ReasoningEffort]

Parse ReasoningEffort from a string (case-insensitive).

Parse ReasoningEffort from a string (case-insensitive).

Value parameters

s

the string to parse

Attributes

Returns

Some(ReasoningEffort) if valid, scala.None otherwise

Concrete fields

All available reasoning effort levels

All available reasoning effort levels

Attributes

Implicits

Implicits

implicit val rw: ReadWriter[ReasoningEffort]

Upickle ReadWriter for serialization/deserialization. Serializes to/from the string name (e.g., "none", "low", "medium", "high").

Upickle ReadWriter for serialization/deserialization. Serializes to/from the string name (e.g., "none", "low", "medium", "high").

Attributes