Agent console
BlockOne agent run, watched: the plan it is working from, the approval it is blocked on, and the ledger of what it has already done.
- AI
- 8 components
- 1 file
pnpm dlx @dowel-ui/cli add agent-consoleimport { AgentConsoleBlock } from "@/components/blocks/agent-console";<AgentConsoleBlock>
| Prop | Type | Default |
|---|---|---|
state (required) | AgentState | — |
title (required)What this run is for, in the operator's language. | string | — |
actionsWhat has already been done, and how far it can be walked back. | LedgerAction[] | [] |
approvalWhat the run is blocked on, if anything. | AgentApproval | — |
description | string | — |
headerActionsAnything else for the header — a link to logs, a run picker. | ReactNode | — |
onApprovalDecision | (decision: ApprovalDecision) => void | — |
onRevert | (actions: LedgerAction[]) => void | — |
onStopStops the run. Offered only while there is something to stop. | () => void | — |
planThe plan, revised as the agent learns. | PlanStep[] | [] |
planLabel | string | "Plan" |
stateLabelOverrides the state's wording. It must still read as text. | string | — |
tokenLimit | number | — |
tokensUsedContext consumed so far, and the window. | number | — |
className | string | — |