Skip to content

smelt.metrics

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

Preformatted stats text and live perf instrumentation. UiHost-only.

smelt.metrics.session_cost_text

fun(): string

Return preformatted text for the /cost dialog showing the current session's cost, per-turn average, and resolved pricing for the active model.

smelt.metrics.stats_text

fun(): string

Return preformatted text for the /stats dialog (per-model token totals and request counts loaded from the on-disk metrics ledger).