Bar
Compare magnitudes across categories with vertical or horizontal bars.
Where a run's time and money went: a waterfall of model, tool and approval spans with totals and span detail; compact form for a header.
Where a run's time and money went. Not BarChart. Not Meter.
Select a span to open its detail. Running spans draw dashed toward now.
Draft patchModel
TraceWaterfall explains one run. Kinds reuse existing roles (model primary, tool neutral, approval caution), and failed or running is always said in text.
import { TraceWaterfall } from "agentic-ds-kit";From contracts/tracewaterfall.json: must is the a11y requirements, defaults the prop defaults, stops if the doNot rules where the agent asks instead of inventing a cousin.
| Name | Type | Required | Default | Notes |
|---|---|---|---|---|
| title | string | Yes | — | — |
| spans | array | Yes | — | { id, label, kind: "model" | "tool" | "wait" | "approval" | "other", startMs, endMs?, cost?, tokensIn?, tokensOut?, failed?, stepId?, detail? }[]; offsets from the run start; open spans draw dashed to now, and the legend adds "dashed = still running" only while at least one span has no endMs. stepId groups spans under a step heading, shown as written (e.g. "1 · Fetch Stripe charges"). |
| status | running | complete | failed | No | complete | — |
| totalMs | number | No | — | — |
| totalCost | number | No | — | — |
| error | string | No | — | Failed run: why, under the spans. |
| selectedId | string | No | — | — |
| onSpanClick | function | No | — | (id | null) => void. Rows become buttons that open the span detail. |
| compact | boolean | No | false | — |
| currency | string | No | $ | — |
| loading | boolean | No | false | — |
| loadError | string | No | — | — |
| onRetry | function | No | — | — |
Compare magnitudes across categories with vertical or horizontal bars.
Plan usage or AI credits against a limit: total, usage by category, daily bars toned against the cap, and a warning near the limit.
A vertical step list for a running agent task: done steps with durations, the current step with a live timer, then pending steps.
Placeholder when a list, page, or region has nothing to show.