A message from the assistant that includes rendered UI components. Extends the base assistant message with UI-specific content.
API
export type UiAssistantMessage<
Tools extends Chat.AnyTool ,
> = Chat.AssistantMessage <
UiChatSchema ,
Tools
> & {
ui: ReactElement [] | null;
};UiAssistantMessage
@typeToolsChat.AnyTool