Skip to main content
Duck-typed stream event compatible with AI SDK’s fullStream and with AG-UI protocol streams such as TanStack AI’s chat().
  • text-delta (AI SDK) and TEXT_MESSAGE_CONTENT (AG-UI) events are extracted as text output.
  • finish-step (AI SDK) and TEXT_MESSAGE_END (AG-UI) events trigger paragraph separators between steps.
  • All other event types (tool calls, tool results, run lifecycle, reasoning, etc.) are silently skipped.