Skip to Content
UI Kit
Screens (56)

AI Chat Agents

AI Chat / Agent Run — a narrow chat on the left and the agents working on your prompt on the right, in a single file.

Open preview
Loading AI Chat Agents…

Usage

import { AgentRunChatScreen } from "ui-kit/screens/ai-chat-agents";

Props

PropTypeDefaultDescription
workspacestring"Northwind"The workspace in the sidebar
promptstringSAMPLE_PROMPTThe prompt the screen opens with – the sample run plays it (leave empty to start with an idle team)
onPrompt(prompt: string) => void—Called when a prompt is sent – start your run here
onResolve(agent: string, block: string, action: string) => void—Called when a block is answered, in the chat or on the card
chatsShellChat[]—The chats in the sidebar
loadingbooleanfalseGray lines and cards while it loads
emptybooleanfalseNo run yet – the team waits, idle