Skip to main content

cost_lines

Function cost_lines 

Source
pub fn cost_lines(
    estimate: &Estimate,
    rates: Option<Rates>,
    hint: &str,
    thread: Option<&Thread>,
) -> Vec<Line<'static>>
Expand description

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. hint is how this host sets rates, since the terminal has :cost and other hosts have their own. thread is what the state costs when it is a conversation, which is more than the last call alone.