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 { AssistantRuntimeProvider, MessagePrimitive, ThreadPrimitive, useLocalRuntime, type ChatModelAdapter,} from "@assistant-ui/react"import { ConversationMapAui } from "@/components/assistant-ui/elements/conversation-map.aui"const adapter: ChatModelAdapter = { async run() { return { content: [{ type: "text", text: "Happy to help with that." }], } },}function DemoThread() { return ( <ThreadPrimitive.Root className="relative h-80 w-full max-w-lg overflow-hidden rounded-md border"> <ThreadPrimitive.Viewport className="h-full overflow-y-auto p-4"> <ThreadPrimitive.Messages components={{ UserMessage: () => ( <MessagePrimitive.Root className="mb-4 ml-auto max-w-[80%] rounded-lg bg-primary px-3 py-2 text-sm text-primary-foreground"> <MessagePrimitive.Content /> </MessagePrimitive.Root> ), AssistantMessage: () => ( <MessagePrimitive.Root className="mb-4 max-w-[80%] rounded-lg bg-muted px-3 py-2 text-sm"> <MessagePrimitive.Content /> </MessagePrimitive.Root> ), }} /> </ThreadPrimitive.Viewport> <ConversationMapAui side="right" /> </ThreadPrimitive.Root> )}export default function ConversationMapDemo() { const runtime = useLocalRuntime(adapter) return ( <AssistantRuntimeProvider runtime={runtime}> <DemoThread /> </AssistantRuntimeProvider> )}