Skip to content
GitHub
Browse the docs

Building blocks

Agent status

AgentStatus

One short line telling a person what the agent is doing: idle, working, waiting for a person, done or refused. Lime only for the agent's own work; the agent itself never reads it.

The person sees

Loading preview…

Install
booki_version=$(npm view @booki-aui/react@latest version) &&
ui_sdk_version=$(npm view "@booki-aui/react@$booki_version" peerDependencies.@ui-sdk/core) &&
pnpm add --save-exact "@booki-aui/core@$booki_version" "@booki-aui/react@$booki_version" "@booki-aui/styles@$booki_version" \
  "@ui-sdk/core@$ui_sdk_version" "@ui-sdk/react@$ui_sdk_version"

Usage example

JSX
import { AgentStatus } from "@booki-aui/react"

<AgentStatus state="waiting" />

Shows "waiting for a person" in the person's language, with the icon hidden and the change announced politely. Pass the state your agent loop is in; label overrides the words.

Import from @booki-aui/react. For Booki's default styling, add import "@booki-aui/styles".