Function: KabooAssistantMessage()¶
KabooAssistantMessage(
props):Element
Defined in: src/integrations/KabooAssistantMessage.tsx:38
Drop-in replacement for CopilotKit's assistant-message renderer that prepends a first-class swarm/graph turn's member cards ABOVE the assistant's text — inside the chat transcript, as part of the same turn.
Wire it via the messageView slot of CopilotChat:
<CopilotChat messageView={{ assistantMessage: KabooAssistantMessage }} />
This is used instead of renderCustomMessages because the CopilotKit
convenience provider hard-overrides that prop; the messageView/
assistantMessage slot is the supported customization surface and is not
clobbered.
Which cards to show is decided by the turn binding (provided by
KabooMessageView), which resolves each reply message to its turn's
member cards — robust to an interrupt/resume splitting the turn across
multiple runIds. Delegate cards keep their tool-call path (they carry a
toolCallId and are excluded from chatRootGroups).
Below the reply it renders the app's KabooSlots when provided: the
turnFooter (once, anchored on the turn's final assistant message, with all
of the turn's groups) and then the assistantMessageFooter. Both default to
nothing.
Parameters¶
props¶
CopilotChatAssistantMessageProps
Returns¶
Element