Skip to main content
  • string - Raw text, passed through as-is to the platform
  • { raw: string } - Explicit raw text, passed through as-is
  • { markdown: string } - Markdown text, converted to platform format
  • { ast: Root } - mdast AST, converted to platform format
  • { card: CardElement } - Rich card with buttons (Block Kit / Adaptive Cards / GChat Cards)
  • CardElement - Direct card element
  • AsyncIterable<string> - Streaming text (e.g., from AI SDK’s textStream)
  • AsyncIterable<string | StreamEvent> - AI SDK fullStream or TanStack AI chat() stream (auto-detected, extracts text with step separators)