Agent builder
ProA form for configuring an agent: instructions, model, tools and knowledge, with a test chat.
pnpm dlx shadcn@latest add @caliper/agent-builder0 characters
Before you publish
- Give the agent a name, done
- Write instructions of at least a couple of sentences, still to do
- Give it a tool or some knowledge, done
Try it
Send a message to see how Billing helper answers with this setup.
When to use #
Use it for
- Letting users create and test their own assistants.
- Showing changes before they publish.
Skip it when
- The settings are only a few toggles.
Installation #
pnpm dlx shadcn@latest add @caliper/agent-builder
Adds its 5 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage #
Import it from your copy of the source. The example behind the preview comes with the source.
import { AgentBuilder } from "@/components/ui/agent-builder"
The worked example comes with Pro
The 34-line example behind the preview opens here with a Pro or Team licence.
API reference #
AgentBuilder
component
Accessibility #
It exposes group, log and status semantics, with aria-label, aria-labelledby, aria-pressed, aria-valuetext, aria-hidden and aria-live kept in step with state. Changes that matter are announced through a live region.
Keyboard and focus handling comes from Radix popover: arrow keys move through items, Enter and Space select, and Escape closes and returns focus.
Motion #
It declares no animation in its component source. Any transition comes from its stylesheet, which uses the duration tokens that collapse to instant under prefers-reduced-motion.