Spend's third figure is named for what it is: Charged, this month, against the spend limit when there is one, and No spend limit set when there isn't.
2 files+4−40/2 viewed
| 31 | 31 | ||
| 32 | 32 | | View | Figures | | |
| 33 | 33 | | --- | --- | | |
| 34 | − | | **Workspace** | **Spent**: usage at price over the period, every product, the same figure as [Usage](/guides/usage-and-billing/#the-usage-page). **Agents**: every agent's replies and sessions. **Spend limit**: what was charged this month against the workspace's spend limit. | | |
| 34 | + | | **Workspace** | **Spent**: usage at price over the period, every product, the same figure as [Usage](/guides/usage-and-billing/#the-usage-page). **Agents**: every agent's replies and sessions. **Charged**: what the workspace was charged this month, against its spend limit when it has one. | | |
| 35 | 35 | | **You** | **Agents for you** over the period. **Your budget** this month, and what is spent against it. **Your chats with agents**: the replies agents wrote you. | | |
| 36 | 36 | ||
| 37 | 37 | **By day** shows the period one day at a time. Hover or focus a day for |
| 186 | 186 | <Tile label={`Spent, ${label}`} value={used ? money(used.free ? used.totals.costMicros : used.totals.priceMicros) : "—"} sub={used ? (used.free ? "At cost: g1t charges nothing for now" : "Usage at price, every product") : "Usage couldn't be read"} /> | |
| 187 | 187 | <Tile label={`Agents, ${label}`} value={spent ? money(spent.total_micros) : "—"} sub={spent ? `${countOf(spent.by_kind)} replies and sessions` : "The agents service didn't answer"} /> | |
| 188 | 188 | <Tile | |
| 189 | − | label="Spend limit, this month" | |
| 189 | + | label="Charged, this month" | |
| 190 | 190 | value={levels.limit?.spentMicros != null ? money(levels.limit.spentMicros) : "—"} | |
| 191 | 191 | sub={levels.limit ? limitLine(levels.limit.spentMicros ?? 0, levels.limit.spendLimitMicros ?? levels.limit.ceilingMicros) : "Billing couldn't be read"} | |
| 192 | 192 | > | |
| ⋯ | |||
| 285 | 285 | } | |
| 286 | 286 | ||
| 287 | 287 | function limitLine(spent: number, limit: number | null): string { | |
| 288 | − | if (limit == null) return "No spend limit"; | |
| 289 | − | return `Charged, of ${money(limit)} · ${Math.round((spent / Math.max(1, limit)) * 100)}%`; | |
| 288 | + | if (limit == null) return "No spend limit set"; | |
| 289 | + | return `Of a ${money(limit)} spend limit · ${Math.round((spent / Math.max(1, limit)) * 100)}%`; | |
| 290 | 290 | } | |
| 291 | 291 | ||
| 292 | 292 | /** Your own figures: what agents spent for you, and your budget. */ | |