ValyroUI Русская версия

Agent Trace Timeline

Agent steps as a waterfall: time, tokens, cost, inputs and outputs with secrets redacted. Pro · AI chat and agents › Agents and reasoning

What an AI agent did, step by step: plans, tool calls, retrievals and messages on a waterfall, with an inspector for the selected step (timing, tokens, cost, masked input and output, retry). Shows only summaries the agent shares and visible tool traces — never hidden reasoning.

Installation

npx valyro-cli@latest login
npx valyro-cli@latest add agent-trace-timeline
npm install valyro-ui-pro

import 'valyro-ui-pro/styles.css';
import { AgentTraceTimeline } from 'valyro-ui-pro';

Props

PropTypeDefault
events *AgentTraceEvent[]Steps of the run in any order of arrival; children follow their parentId. Append to it while streaming.
selectedIdstring | nullStep shown in the inspector. null shows none.
defaultSelectedIdstring | nullInitial step when uncontrolled. Default: the first failed step, else the running one, else the first.
onSelectedIdChange(id: string | null) => voidCalled with the step the user picks (click or arrow keys).
onRetry(event: AgentTraceEvent) => voidAdds Retry to failed steps (unless the step sets retryable: false).
redactSecretsboolean | RedactRuletrueMasks secrets in inputs and outputs: keys like token, API-key-shaped strings, and your own rule. Default true.
renderOutput(event: AgentTraceEvent) => ReactNodeReplaces the built-in output view (text, JSON or Markdown) of a step.
livebooleanfalseThe run is still going: shows a badge and announces new steps to screen readers.
demobooleanfalseMarks the trace as sample data ("Demo data" badge) so it is never taken for a real run.
loadingbooleanfalseThe trace is loading: skeleton rows.
errorReactNodeLoading failed: shown instead of the steps.
titleReactNodeHeading. Default: labels.title.
headingLevel2 | 3 | 4 | 53Level of the heading (default 3); the step title in the inspector takes the next level.
heightCSSProperties['height']Height of the whole component; the list and the inspector scroll inside it. Default: content height, list up to 28rem.
currencystring'USD'ISO 4217 code of cost. Default USD.
localestringBCP 47 locale for numbers and durations; defaults to the ThemeProvider's.
labelsPartial<Omit<AgentTraceTimelineLabels, 'kinds' | 'statuses'>> & { kinds?: Partial<Record<AgentTraceKind, string>>; statuses?: Partial<Record<AgentTraceStatus, string>>; }Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Agent Plan · Next: Agent Approval Gate · All AI chat and agents