Union type of all possible message types in the UI chat. Can be an assistant message with UI components, a user message, an error message, or an AG-UI activity message.
API
export type UiChatMessage<Tools extends Chat.AnyTool > =
| UiAssistantMessage <Tools>
| UiErrorMessage
| UiUserMessage
| Chat.ActivityMessage; UiChatMessage
@typeToolsChat.AnyTool