| Name | Type | Description |
|---|---|---|
cost_usd* | float | Estimated cost in US dollars. |
Format a speculative USD cost as a rounded, approximate upper bound.
Used where the figure is a worst-case estimate rather than recorded spend
(e.g. the cold-cache warning modal, whose cache may be partially warm):
rounds so the display does not imply false precision, and prefixes with ~
to signal "approximately". Do not use for recorded session spend --
format_cost renders actuals exactly.
Rounding is upward to two significant figures at or above a dime so it can
safely appear in an upper-bound estimate. Between one cent and a dime the
figure keeps cent-level precision instead (0.062 renders ~$0.07); a
second digit there would be sub-cent noise.