"use client"; import { ExampleNav } from "@/components/example-nav"; import { AssistantMessageGui } from "@/components/assistant-message-gui"; import { Thread, type ThreadComponents, } from "@/components/assistant-ui/thread"; import { AssistantRuntimeProvider, Suggestions, useAssistantInstructions, useAui, } from "@assistant-ui/react"; import { useChatRuntime } from "@assistant-ui/react-ai-sdk"; import { lastAssistantMessageIsCompleteWithToolCalls } from "ai"; import { renderGuiChatInstructions } from "@/lib/render-gui-tool"; const GuiChatInstructions = () => { useAssistantInstructions(renderGuiChatInstructions); return null; }; const GuiWelcome = () => { return (
Ask the agent to call render_gui with Card, Button, and Stack.