Skip to content

AgentPauseControl

stable

Pause/resume control for in-flight agents with execution state preservation — shows step count and last completed action when paused

Human-in-the-Loop/Storybook ↗
import { AgentPauseControl } from "@danagraph/design-system/patterns"
Loading demo…

Props

agentrequired
Type stringDefault —

Agent name.

taskrequired
Type stringDefault —

High-level task description.

currentSteprequired
Type numberDefault —

Current step (1-based).

totalStepsrequired
Type numberDefault —

Total execution steps.

lastCompletedSteprequired
Type stringDefault —

Last completed step — shown as preserved state when paused.

currentActionrequired
Type stringDefault —

Current agent action — shown while running.

startedAtrequired
Type stringDefault —

Execution start timestamp.

status
Type "running" | "paused" | "resuming"Default —

Controlled status. Omit for internal state.

onPause
Type () => voidDefault —

Called on pause.

onResume
Type () => voidDefault —

Called on resume.

semantictypebordersurface
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?