Pipeline
- Docsusage, props, keywords
- Demosrc/demo.tsx
- Buildshadcn add → vite
- Capturelight, dark, motion
- IndexBM25 + vectors
Public log. Prompts, raw model errors and costs stay on the admin side.
Log
Demo source
src/demo.tsx · from an earlier run
import { AiGuardrails } from "@/components/elements/ai-guardrails"const checks = [ { id: "1", type: "input" as const, status: "blocked" as const, category: "personal data", reason: "The message contains a phone number.", originalContent: "Call me at 555-0142 tomorrow.", }, { id: "2", type: "output" as const, status: "modified" as const, category: "profanity", reason: "Offensive wording was replaced.", originalContent: "This is damn useful.", modifiedContent: "This is very useful.", confidence: 0.92, }, { id: "3", type: "output" as const, status: "approved" as const, category: "toxicity", confidence: 0.98, },]export default function GuardrailsDemo() { return ( <AiGuardrails checks={checks} className="w-full max-w-lg" /> )}