Audit our Q3 edge caching rollout — how much did p95 latency and egress cost improve?
AI Chat Screen
Full-page AI agent conversation workspace assembling App Shell with Chat Composer, AI Message & Citations, Thinking State, Tool Call Card, Approval Card, and a live Run Context inspector.
When to use
Good fit
AI copilots, research assistants, internal ops agents, and coding workspaces that combine multi-thread navigation, streamed answers, tool inspections, human approvals, and verifiable citations.
When not to use
Lightweight help popovers or inline comment widgets — compose <ChatComposer /> and <AiMessage /> directly instead of mounting a full 3-pane shell.
Key capabilities
All 6 Agent primitives wired together
Combines ChatComposer, AiMessage, ThinkingState, ToolCallCard, ApprovalCard, and AgentActivity inside AppShellFlat so every interaction flows across panes.
Linked citations & Sources inspector
Clicking any inline [1] citation badge automatically opens the right Run context pane, switches to the Sources tab, and highlights the referenced source card.
Interactive human-in-the-loop approval
Switch to the Staging DB migration thread to approve or reject a high-risk shell.exec tool call with live step plan updates and a follow-up execution turn.
Simulated streaming, Stop & New chat
Send a prompt from any thread or click New chat to pick a starter card — the composer enters streaming mode with an instant Stop generating abort control.
API Reference
Connect your backend with onSendMessage and onApprovalDecision, then publish each conversation update as a new threads array. Set streaming on the active assistant turn and supply onStopGenerating to let users request cancellation.
AiChatScreenProps
AiChatThread
Included Primitives
Installing ai-chat-screen automatically pulls these BIU UI primitives through the shadcn Registry: