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 "@pantoken/plugin-custom-components/agent-shell.css"import { SendIcon } from "lucide-react"import { avatarImage } from "@/preview/images"import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"import { Button } from "@/components/ui/button"import { Card, CardContent, CardFooter } from "@/components/ui/card"import { Input } from "@/components/ui/input"export default function AgentShellDemo() { return ( <Card className="w-full max-w-md"> <CardContent className="flex flex-col gap-4"> <div className="flex gap-3"> <Avatar> <AvatarImage src={avatarImage("Agent")} alt="Agent" /> <AvatarFallback>AI</AvatarFallback> </Avatar> <p className="rounded-lg bg-muted px-3 py-2 text-sm"> Hi! I can help you draft a reply to your customer. What would you like to say? </p> </div> <div className="flex flex-row-reverse gap-3"> <Avatar> <AvatarImage src={avatarImage("Olivia Martin")} alt="Olivia Martin" /> <AvatarFallback>OM</AvatarFallback> </Avatar> <p className="rounded-lg bg-primary px-3 py-2 text-sm text-primary-foreground"> Make it shorter and friendlier. </p> </div> </CardContent> <CardFooter className="gap-2"> <Input placeholder="Message the agent..." /> <Button size="icon" aria-label="Send"> <SendIcon /> </Button> </CardFooter> </Card> )}