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 { AiToolInspector, AiToolInspectorHeader, AiToolInspectorList, type ToolExecution,} from "@/components/elements/ai-tool-inspector"const base = new Date("2024-06-01T12:00:00Z")const at = (ms: number) => new Date(base.getTime() + ms)const tools: ToolExecution[] = [ { id: "call_1", name: "search_docs", input: { query: "useState" }, output: { hits: 3 }, status: "success", startTime: at(0), endTime: at(820), }, { id: "call_2", name: "read_file", description: "Reads a file from the workspace", input: { path: "src/app.tsx" }, output: { lines: 142 }, status: "success", startTime: at(900), endTime: at(1340), }, { id: "call_3", name: "run_tests", input: { suite: "unit" }, status: "error", error: "2 tests failed: expected 4 to equal 5", startTime: at(1500), endTime: at(4210), },]export default function ToolInspectorDemo() { return ( <AiToolInspector tools={tools} defaultExpandedIds={["call_3"]} className="w-full max-w-lg" > <AiToolInspectorHeader /> <AiToolInspectorList /> </AiToolInspector> )}