class

Smith::UI::TuiRenderer

Inherits Smith::Output::Renderer < Reference < Object

The third Renderer: turns the event stream into blocks for the fullscreen app instead of plain print lines or JSON.

Constructors

new(app : App)
Source

Instance methods

finish(usage : Smith::LLM::Usage, cost : Float64 | Nil = nil) : Nil

Callers that have no price basis still want the usage line.

Source
handle(event : Smith::Events::Event) : Nil
Source
prompt_io

Where an approval prompt should write. In JSON mode this must not be stdout, or the prompt would land in the middle of the JSONL stream.

Source