Skip to Content
UI Kit
Components (172)

Agent Flame Graph

Reusable Clean-style UI component built on Base UI and Tailwind CSS v4.

Open preview
Loading Agent Flame Graph…

Usage

import { AgentFlameGraph } from "ui-kit/components/agent-flame-graph";

Props

PropTypeDefaultDescription
root*FlameNode——
nownumber—The clock, in ms from the start of the run – e.g. a faster one for a demo
startedAtnumber—When the run started (epoch ms) – without now, the component keeps its own clock from here while it runs
metricFlameMetric—What sizes the blocks – controlled
defaultMetricFlameMetric"time"—
onMetricChange(metric: FlameMetric) => void——
zoomIdstring | null—The id of the block that fills the width – controlled, null for the whole run
defaultZoomIdstring | nullnull—
onZoomChange(id: string | null, node: FlameNode) => void——
querystring—The search – controlled
defaultQuerystring""—
onQueryChange(query: string) => void——
onRetry(block: FlameNode) => void—Offers Retry on failed blocks – in their card, or R on a focused failed block
titlestring"Flame graph"—
rootLabelstring"Run"The first crumb of the breadcrumb (default "Run")
formatCost(amount: number) => stringdollarsFormats every cost – defaults to dollars, e.g. "$0.042"
classNamestring——

On this page