AI dashboard
BlockWhat the AI features cost and whether they worked: tokens, spend, failure rate, a breakdown by model, and the runs still going.
- AI
- 6 components
- 1 file
pnpm dlx @dowel-ui/cli add ai-dashboardimport { AiDashboardBlock } from "@/components/blocks/ai-dashboard";<AiDashboardBlock>
| Prop | Type | Default |
|---|---|---|
runs (required) | number | — |
spend (required)Formatted spend for the period. | string | — |
tokens (required)Tokens consumed in the period. | number | — |
actions | ReactNode | — |
comparisonLabel | string | "vs last period" |
description | string | "What the model calls cost, and whether they worked." |
failureRateShare of runs that failed, 0–1. | number | — |
models | AiModelUsage[] | [] |
previousFailureRate | number | — |
previousRuns | number | — |
previousSpendValue | number | — |
previousTokens | number | — |
recentRuns | AiRunSummary[] | [] |
spendValueRaw spend, so the change can be computed. | number | — |
title | string | "AI usage" |
className | string | — |