gpui-kit GitHub

Components

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>) -> Self

Options

Chain onto the value.

label(label: impl Into<SharedString>) -> Self
line(line: CostLine) -> Self
lines(lines: impl IntoIterator<Item = CostLine>) -> Self

Rendered by

Each of these compiles and is captured by the gate, so the code behind them is verified rather than written.

Source: crates/gpui-kit/src/agent/cost.rs