Skip to content

smelt.reasoning

Tier: Mixed - Contains both Host and UiHost functions; each function below lists its exact tier.

Classification: Supported - Primary alpha facade for user config and plugins.

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

Tier: Host - Available in every runtime, including headless mode.

Return the active reasoning effort.

smelt.reasoning.cycle

fun(): nil

Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.

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[]

Tier: Host - Available in every runtime, including headless mode.

Return the configured reasoning-effort cycle.

smelt.reasoning.known_list

fun(): string[]

Tier: Host - Available in every runtime, including headless mode.

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

smelt.reasoning.options

fun(): table

Tier: Host - Available in every runtime, 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

Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.

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