Liveness Indicator
A toned dot and label for an agent's computed liveness (running pulses, suspect_dead is destructive) and the time since its last activity, with now, locale and timeZone passed through.
Example
- T-014-A1Finished
- T-014-A2Runninglast activity
- T-015-A1Possibly stucklast activity
- T-016-A1Finished
liveness-indicator-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
LivenessIndicator
| Prop | Type | Default |
|---|---|---|
livenessrequiredComputed by the data source; never derived here from times. | Liveness | – |
lastActivityAt | Instant | – |
nowOne `useNow()` per screen, passed down. | Instant | – |
locale | string | – |
timeZone | string | – |
labels | Partial<LivenessLabels> | – |
Also takes <span> attributes and render except children.
Other exports
livenessLabelslivenessLabelsEslivenessTonestype LivenessIndicatorPropstype LivenessLabelsAccessibility
- A dot with a word; running pulses, and the pulse stops under reduced motion.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.