# AgentCard

The identity, capabilities and current activity of one agent.

- **Use it for**: One agent with its capabilities and activity.
- **Not for**: Runs across agents. Try [RunBoard](https://unseenui.com/components/run-board/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { AgentCard } from '@stackunseen/ui';
import '@stackunseen/ui/styles.css';

<AgentCard variant="card" name="Research agent" description="Finds relevant sources" state="running" />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `activity` | `string` |  |
| `className` | `string` |  |
| `description` (required) | `string` |  |
| `name` (required) | `string` |  |
| `onSelect` | `(() => void)` |  |
| `selected` | `boolean` |  |
| `state` (required) | `"idle" \| RunLifecycle` |  |
| `variant` | `"card" \| "row" \| "profile"` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[AgentHandoff](https://unseenui.com/components/agent-handoff/), [AuditTrail](https://unseenui.com/components/audit-trail/), [PolicyStatus](https://unseenui.com/components/policy-status/)

Page: https://unseenui.com/components/agent-card/
