AgentPicker

Choose which agent takes the job. Cards show purpose, tools and cost; a marker slides between them and arrow keys move. AI.

Open playground

About

AgentPicker is a React component in the AI category of smoui. It is typed, ships no stylesheet, follows your theme through CSS variables, and honors prefers-reduced-motion. Import it with import { AgentPicker } from "@ashutoshswamy/smoui" and set agents, value, onChange among its 4 props.

Install

Terminal
npm i @ashutoshswamy/smoui

Usage

TSX
import { AgentPicker } from "@ashutoshswamy/smoui";

<AgentPicker label="Agent" agents={agents} onChange={setAgent} />

Props 4

agents

id, name, description, optional tools and meta.

AgentOption[]
value / defaultValue

Selected id.

string
onChange

Called on selection.

(id) => void
label

Accessible group name.

string