Agentic
Task List
The steps an agent plans and how far it has got. It can ask before the agent starts, marks the step in progress, and folds into a summary when every step is done.
Usage
With the AI SDK
The AI SDK has no plan part. Stream the plan as a custom data part and update each step's status as the agent works.
With TanStack AI
Return the plan from a tool, such as a plan tool the model calls first, and read its output from the tool-call part.
Examples
Failed step
A failed step stops the plan and says why, with Retry from here.
Recommendations
| Guidance | Practice |
|---|---|
| Do | Keep step titles short and in the imperative, such as "Run the visual tests". Update each step's status as the agent works, and mark exactly one step as running. |
Usage boundaries
| Guidance | Boundary |
|---|---|
| Scope | The application runs the agent and stores the plan. Task List shows each step's state; Approve, Revise, and Retry only report the choice. |
| Scope | Use it for steps the agent decides on before it starts. Calls it makes along the way belong in Tool Call Group. |
API reference
Public props from @mizen-labs/ui. Use exported prop types for the complete TypeScript contract.
| Prop | Type | Default | Description |
|---|---|---|---|
| | — | The plan's goal, shown in the header and naming the list. |
| | — | Each step with an id, a title, and a status. detail adds a muted second line; duration and error show once it ends. |
| | false | Asks before the agent starts, with Approve and Revise. Each button appears only with its handler. |
| | — | Shows Retry from here under a failed step, with the step's id. |
| | Measured | Seconds the plan took, shown once it is done. Measured while the component watches it run; pass it for a plan from history. |