Loading component…
Loading component…
This component has not been implemented locally yet.
To reuse this local React demo, copy all files from the Code tab into the same folder, then import AIChat/AgentRun from ./ai-chat-agents.
import { AgentRunChatScreen } from "@/components/ui/ai-chat-agents";
export default function Page() {
return (
<AgentRunChatScreen
onPrompt={(prompt) => runs.start(prompt)}
onResolve={(agent, block, action) => runs.answer(agent, block, action)}
onNavigate={(label) => router.push(routes[label])}
/>
);
}| Name | Type | Default | Description |
|---|---|---|---|
| prompt | string | "Prepare the Q4 board report…" | The prompt the screen opens with – the sample run plays it; empty starts with the team idle |
| onPrompt | (prompt: string) => void | Called when a prompt is sent – start your run here and feed its agents, steps and blocks into your copy of the screen | |
| onResolve | (agent, block, action) => void | Called when a block is answered – the same buttons show in the chat (full words) and on the agent's card (short ones, e.g. Connect / Skip, Retry / Skip), either one moves both on. A block with tone "error" is a failure in red, otherwise it waits for you in amber | |
| chats | ShellChat[] | The chats in the sidebar | |
| loading | boolean | Gray lines in the chat and gray cards on the canvas | |
| empty | boolean | No run yet – the team waits, idle, and the assistant offers a first prompt | |
| workspace | string | "Northwind" | The workspace in the sidebar |
| onNavigate | (label: string) => void | Called with the label of a sidebar item | |
| className | string | Extra class on the root |
The sidebar starts folded; the chat keeps 380px (330 on narrower screens), the canvas the rest – a light gray dot grid that zooms like Agent / Orchestration's – and fits the team in; the run, its progress and what needs you float on top
On phones Chat and Agents switch at the top – Agents gets an amber dot when one needs you – and the agents hang one below the other
Dark mode built in: switches when an ancestor (usually <html>) has the class dark or data-theme="dark"