Skip to content

smelt.reasoning

Availability: Some functions need the terminal UI; each function below says which.

Reasoning-effort selector. smelt.reasoning.current() reads the active effort, smelt.reasoning.set(v) sets it in a TUI session, and smelt.reasoning.cycle_list() lists the configured cycle.

smelt.reasoning.current

fun(): string

Availability: Everywhere, including headless mode.

Return the active reasoning effort.

smelt.reasoning.cycle

fun(): nil

Availability: Terminal UI only; raises in headless mode.

Advance the active reasoning effort to the next entry in smelt.reasoning.cycle_list(), wrapping at the end. No-op when the cycle is empty.

smelt.reasoning.cycle_list

fun(): string[]

Availability: Everywhere, including headless mode.

Return the configured reasoning-effort cycle.

smelt.reasoning.known_list

fun(): string[]

Availability: Everywhere, including headless mode.

Return the reasoning-effort labels known by this smelt version. Models may advertise additional labels.

smelt.reasoning.options

fun(): table

Availability: Everywhere, including headless mode.

Return { efforts, default } for the active model. efforts contains supported native labels; an empty list means the supported levels are unknown. default is the model's default effort when known.

smelt.reasoning.set

fun(effort: string): nil

Availability: Terminal UI only; raises in headless mode.

Set the active reasoning effort. The change is applied immediately to the UI and persisted according to the active remember policy.