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';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
steps * | AgentPlanStep[] | Steps in run order, each with a status; nested substeps are counted in place of their parent. | |
title | ReactNode | Heading. Defaults to labels.title. | |
startedAt | DateInput | When the run started: the header counts up while steps remain. | |
duration | number | Total run time in ms once finished. | |
onApprove | (stepId: string) => void | Approval gates show Approve / Reject when these are given. | |
onReject | (stepId: string) => void | Called with the step id when Reject is clicked at a needs-approval step. | |
onRetry | (stepId: string) => void | Adds Retry to failed steps. | |
open | boolean | The step list is shown. Default true. | |
defaultOpen | boolean | true | Initial open when uncontrolled. |
onOpenChange | (open: boolean) => void | Called with the new open when it changes. | |
openLogs | string[] | Ids of steps whose logs are shown. | |
defaultOpenLogs | string[] | [] | Initial openLogs when uncontrolled. |
onOpenLogsChange | (ids: string[]) => void | Called with the new openLogs when it changes. | |
locale | string | BCP 47 locale for timings; defaults to the ThemeProvider's. | |
labels | Partial<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 · Весь раздел «ИИ: чат и агенты»