Skip to main content
Anything the stream overloads of text() and markdown() accept as a source. The builder normalizes all of these to an internal AsyncIterable<string> of text deltas:
  • the Vercel AI SDK streamText() result (its .textStream is picked up automatically — pass either the whole result or .textStream directly),
  • a raw AsyncIterable<T> (e.g. an OpenAI / Anthropic streaming response),
  • a raw ReadableStream<T> of chunks.