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

Agent Plan

Live agent task plan. Pro · AI chat and agents › Agents and reasoning

An agent's live plan: steps and sub-steps with status, timings, collapsible logs, approval gates that pause the run, and a segmented progress summary.

Installation

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

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

Props

PropTypeDefault
steps *AgentPlanStep[]Steps in run order, each with a status; nested substeps are counted in place of their parent.
titleReactNodeHeading. Defaults to labels.title.
startedAtDateInputWhen the run started: the header counts up while steps remain.
durationnumberTotal run time in ms once finished.
onApprove(stepId: string) => voidApproval gates show Approve / Reject when these are given.
onReject(stepId: string) => voidCalled with the step id when Reject is clicked at a needs-approval step.
onRetry(stepId: string) => voidAdds Retry to failed steps.
openbooleanThe step list is shown. Default true.
defaultOpenbooleantrueInitial open when uncontrolled.
onOpenChange(open: boolean) => voidCalled with the new open when it changes.
openLogsstring[]Ids of steps whose logs are shown.
defaultOpenLogsstring[][]Initial openLogs when uncontrolled.
onOpenLogsChange(ids: string[]) => voidCalled with the new openLogs when it changes.
localestringBCP 47 locale for timings; defaults to the ThemeProvider's.
labelsPartial<AgentPlanLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

Previous: Tool Call · Next: Agent Trace Timeline · All AI chat and agents