Calm motion: animations on this site only fade, with no movement
Agent plan
The steps of an agent, each with its state
Shows what an agent plans to do and how far it is. Each step is waiting, running, done, failed, or skipped. For the details of one call to a tool, use the tool call. For steps of a form, use the steps.
Basic
- Read the transcript of episode 41, Waiting
- Find the chapters, Waiting
- Write the show notes, Waiting
- Make three social clips, Waiting
- Post the notes to the website, Waiting
stepsis a list of steps. Each step has anid, atitle, astatus, and an optionaldetail. The status ispending,running,done,failed, orskipped.- Each state has its own icon: a ring, a spinner, a check, a cross, or a dash. The running step is bold, and a skipped step is struck through, so the color is not the only sign.
- The head shows the
titleof the plan, the count of done steps, and a bar. - The running step has
aria-current="step". If the running step changes, a hidden status line reads it. Screen readers also hear the state after each step. - Change the words with
labelsor a label pack:pending,running,done,failed,skipped, andsummary(a function of the done steps and all steps).
Usage
ts
import { BlessAgentPlan } from "blessing-ui";API
Props
| Name | Type | Default | Description |
|---|---|---|---|
steps* | BlessPlanStep[] | — | |
title | string | — | the goal of the plan, at the top |
labels | Partial<Record<BlessStepStatus, string> & { summary: (done: number, total: number) => string; }> | — |