Agent Observability
UI componentsComponents

Metric Summary Cards

A row of compact metric tiles for the headline observability numbers — turn count, avg latency, token totals. Small, dense, and meant to sit above the fold on the session detail page.

Preview

Loading metric summary cards preview…

Installation

pnpm dlx agent-observability-ui@latest add metric-summary-cards
npx agent-observability-ui@latest add metric-summary-cards
yarn dlx agent-observability-ui@latest add metric-summary-cards
bunx --bun agent-observability-ui@latest add metric-summary-cards

Usage

import { MetricSummaryCards } from '@/components/metric-summary-cards'

// Inside a provider tree — reads the current session via context
<MetricSummaryCards />

// Or pass your own metrics
<MetricSummaryCards metrics={customMetrics} />

Props

PropTypeDefaultDescription
metricsSessionMetrics | nullOverride the metrics resolved from provider context. Useful when rendering ad-hoc aggregates or in stories. Defaults to the current session’s metrics.

On this page