Skip to content

Agent status

Shows the current step of an agent and its state.

Checking the documentationSearching for the relevant sectionWorking
agent-status-demo.tsx

Installation

The CLI adds the files, packages, theme variables, and Tailwind plugin that this component uses. Before you run it, set up your project.

States

Screen readers announce each change.

Planning the next stepChoosing where to lookThinkingReading the docsOpening the disclosure guideWorkingAnswer readyTwo sources attachedDoneSource unavailableTry again or choose another sourceFailed
agent-status-states-demo.tsx

API reference

state: "thinking" | "working" | "complete" | "error"Required
Sets the icon and the state text. Thinking and working animate unless reduced motion is on.
label: stringRequired
The current step. Screen readers announce changes.
detail: string
Text below the label.