basalt / ai/src / singleChunkStream
Function: singleChunkStream()
> singleChunkStream(run): AsyncIterable<string>
Defined in: ai/src/provider/types.ts:50
Default stream() implementation for providers without real token streaming yet: run the one-shot completion and yield it as a single chunk. Real server-sent-event streaming lands in a later phase; this keeps the AIProvider contract honest today.
Parameters
run
() => Promise<string>
Returns
AsyncIterable<string>