Skip to Content
UI Kit
Screens (56)

Agent Guardrails

Agent / Guardrails — the rules a team of agents has to keep, and what they catch, live, in a single file.

Open preview
Loading Agent Guardrails…

Usage

import { AgentGuardrailsScreen } from "ui-kit/screens/agent-guardrails";

Props

PropTypeDefaultDescription
workspacestring"Northwind"The workspace in the sidebar
titlestring"Guardrails"The page's title in the bar
agentsAgdAgent[]AGENTS—
rulesAgdRule[]—The rules, in this order
hitsAgdHit[]—The catches – left out, a sample that plays on while Live is on
nownumber—Where now stands, epoch ms – defaults to the clock
defaultOpenstring | null"refund"The rule open on the right when the screen starts
onToggle(rule: AgdRule, on: boolean) => void——
onModeChange(rule: AgdRule, mode: AgdMode) => void——
onDecide(hit: AgdHit, approved: boolean) => void——
onNewRule() => void——
onTest(rule: AgdRule, text: string) => string | null—Test this rule in the panel: the part of the text that sets the rule off, or null – defaults to the sample's checks
passednumber—Checks that passed in the last hour, for the bar on top – left out with your own catches, the bar shows the catches only
loadingbooleanfalseGray rows and panel while the rules load
emptybooleanfalseNo rules yet