Screens (56)
Agent Guardrails
Agent / Guardrails — the rules a team of agents has to keep, and what they catch, live, in a single file.
Loading Agent Guardrails…
Usage
import { AgentGuardrailsScreen } from "ui-kit/screens/agent-guardrails";Props
| Prop | Type | Default | Description |
|---|---|---|---|
workspace | string | "Northwind" | The workspace in the sidebar |
title | string | "Guardrails" | The page's title in the bar |
agents | AgdAgent[] | AGENTS | — |
rules | AgdRule[] | — | The rules, in this order |
hits | AgdHit[] | — | The catches – left out, a sample that plays on while Live is on |
now | number | — | Where now stands, epoch ms – defaults to the clock |
defaultOpen | string | 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 |
passed | number | — | Checks that passed in the last hour, for the bar on top – left out with your own catches, the bar shows the catches only |
loading | boolean | false | Gray rows and panel while the rules load |
empty | boolean | false | No rules yet |