ValyroUI English version

Agent Plan

Живой план задач агента. Pro · ИИ: чат и агенты › Агенты и рассуждения

Установка

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

Пропсы

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.

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

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

Назад: Tool Call · Далее: Agent Trace Timeline · Весь раздел «ИИ: чат и агенты»