ValyroUI English version

Agent Trace Timeline

Шаги агента на водопаде: время, токены, стоимость, вход и выход без секретов. Pro · ИИ: чат и агенты › Агенты и рассуждения

Установка

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';

Пропсы

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.

Похожие компоненты

  • Chain of Thought — Ход рассуждений модели
  • Tool Call — Вызов инструмента с подтверждением
  • Agent Plan — Живой план задач агента
  • Agent Approval Gate — Подтверждение действия агента: риск, diff, явное согласие и журнал решений
  • Memory Panel — Что помнит ассистент
  • AI Chat Window — Окно AI-чата
  • Chat Message — Сообщения с потоковым выводом
  • Message Branches — Версии сообщения и дерево веток диалога
  • Streaming Text — Плавный вывод потока токенов
  • Markdown Preview — Отображение Markdown
  • Response Feedback — Оценка ответа и рубрика для асессоров
  • Prompt Composer — Поле промпта с вложениями

Назад: Agent Plan · Далее: Agent Approval Gate · Весь раздел «ИИ: чат и агенты»