Skip to content
caliper ui pro docs

Agent run

The full view of an agent task: steps, status, approvals and cost.

Pro

When to use

  • Showing a long-running task the user can pause, stop or retry.
  • Some steps need approval.

When not to use

  • The task is a single quick call; use the tool result.

Installation

terminal
pnpm dlx shadcn@latest add @caliper/agent-run

Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.

API reference

AgentRun

7 props
PropTypeDefaultDescription
run *AgentRunData—
onPause(() => void)—
onResume(() => void)—
onStop(() => void)—
onRetry(() => void)—
onApprove((stepId: string, approved: boolean) => void)—Called with the step id and the decision.
classNamestring—

Keyboard

  • No custom key handling; Tab and the native activation keys do the work.

Accessibility

It exposes status semantics, with aria-label, aria-hidden, aria-current and aria-expanded kept in step with state. Changes that matter are announced through a live region.

Notes for AI

Give your coding assistant this page as Markdown instead of screenshots: the props, keyboard and examples in one file.

/docs/components/agent-run.md

The index of every part is at /llms.txt.

More in Assistant screens