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.textStreamis picked up automatically — pass either the whole result or.textStreamdirectly), - a raw
AsyncIterable<T>(e.g. an OpenAI / Anthropic streaming response), - a raw
ReadableStream<T>of chunks.