CostMeter builder
What a run has cost so far, line by line.
A builder is RenderOnce. Construct and mount it in one expression.
use gpui_kit::agent::CostMeter;
Construct
new(ident: impl Into<Ident>) -> SelfOptions
Chain onto the value.
label(label: impl Into<SharedString>) -> Self
line(line: CostLine) -> Self
lines(lines: impl IntoIterator<Item = CostLine>) -> SelfRendered by
Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.