Skip to content

Agent Builder

One card to configure, test and publish an agent. Name and version, model, instructions, tools with permission notes, knowledge files, a simulated test chat, what changed since the live version and a check before Publish.

On this page

Examples

Publish fails, then retries

A new agent

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

config / defaultConfig / onConfigChange
AgentConfig / AgentConfig / (config) => void
Defaultempty
The agent as plain data: { name, model, instructions, tools: string[] (ids switched on), files: AgentFile[] }. Controlled or uncontrolled.
published / version
AgentConfig / number
Defaultfirst config / 1
The version that is live. Changes since v12 and Reset are measured against it; after a Publish it becomes the new baseline and the number goes up.
modelsrequired
ModelOption[]
The list the Model picker shows. Every fact about a model comes from your data.
toolsrequired
BuilderTool[]
{ id, name, note, icon?, risky? }. The note says what switching it on allows. icon is your own mark (a neutral glyph without it). A risky tool asks for approval in Test.
limits
{ instructions?: number }
A soft limit: the counter turns red and Publish waits when instructions are over it.
onUpload / accept
(file, signal, onProgress) => Promise<void> / string
Stores one file. Call onProgress with 0 to 1, resolve when done, throw to show Retry. Stop and Cancel abort signal. Without onUpload there is no Add files button.
onTest / samplePrompts
(message, config, signal) => Promise<TestStep[]> | AsyncIterable<TestStep>
Your simulated run. A step is { kind: 'text', text } or { kind: 'tool', id, tool, input, risky? }. A risky step waits for Approve or Deny. Nothing is sent by the block; your callback decides what to simulate.
checks / onCheck / evalHref
CheckCase[] / (case, config, signal) => Promise<{ pass, note? }> / string
Sample prompts run one after another before Publish, each with pass or fail and a note. evalHref links to your full Eval suite.
onPublish
(config, signal) => Promise<string | void>
Publishes. The button shows pending; resolve with the text for the done line, or throw to show the message and Try again. Publish is off until something changed and nothing is missing.
Motion
no animation
State changes are instant text and marks, so reduced motion needs no special case. Upload bars use the shared Progress.
a11y
section
Every control has a name; tool switches are named with their permission note. Upload, test and check progress, pending approvals and the publish result are announced in polite live regions; errors use an alert. Status is never colour alone.

When to use

When to use

  • Letting a person set up one agent: model, instructions, abilities and knowledge, then test it in a simulation first.
  • A review step ahead of Publish that shows what changed since the live version and runs a few sample prompts.

When not to use

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Agent Builder to my app and wire it to my own data.
  • I need letting a person set up one agent: model, instructions, abilities and knowledge, then test it in a simulation first. Set that up with the Knowns UI Agent Builder.
  • Which Agent Builder props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "agent-builder" }) and search_docs({ query: "agent builder" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Agent Builder, or found something off? We read every message.