Expand description
Turning answers, questions and errors into styled transcript lines.
Constants§
Functions§
- answer_
lines - Render one answer: the number, the distribution it came from, and what it means.
- bar
- A probability meter. Eighteen columns is enough to read a distribution at a glance.
- bold
- color_
for - cost_
lines - The cost estimate as a small table: which question spends what, and — when rates are set — the
money at the bottom. Tokens are estimated, so the numbers are a shape, not a bill.
hintis how this host sets rates, since the terminal has:costand other hosts have their own.threadis what the state costs when it is a conversation, which is more than the last call alone. - dim
- error_
lines - Errors are part of the lesson: show the variant, what it means, and what to do.
- plain
- question_
lines - One line per question, the way it will go on the wire.
- styled
- text_of
- JSON strings read better unquoted; everything else stays JSON.
- turn_
lines - One turn of the conversation held as the state, as
:turnand:stateecho it back.