Skip to content
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
Publish episode 410 of 5 steps done
  1. Read the transcript of episode 41, Waiting
  2. Find the chapters, Waiting
  3. Write the show notes, Waiting
  4. Make three social clips, Waiting
  5. Post the notes to the website, Waiting

  • steps is a list of steps. Each step has an id, a title, a status, and an optional detail. The status is pending, running, done, failed, or skipped.
  • 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 title of 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 labels or a label pack: pending, running, done, failed, skipped, and summary (a function of the done steps and all steps).

Usage ​

ts
import { BlessAgentPlan } from "blessing-ui";

API ​

Props

NameTypeDefaultDescription
steps*BlessPlanStep[]—
titlestring—the goal of the plan, at the top
labelsPartial<Record<BlessStepStatus, string> & { summary: (done: number, total: number) => string; }>—

Released under the MIT License. Character names and artwork belong to their owners.