Skip to content

CollectedStream

Defined in: streaming.ts:770

Rich result from collecting a stream. Provides content, message, all chunks, and metadata.

readonly chunks: readonly IRStreamChunk[]

Defined in: streaming.ts:784

All chunks received.


readonly content: string

Defined in: streaming.ts:774

Full accumulated text content.


readonly finishReason: FinishReason

Defined in: streaming.ts:789

Finish reason from done chunk.


readonly message: IRMessage

Defined in: streaming.ts:779

The final message.


readonly optional requestId: string

Defined in: streaming.ts:799

Request ID from start chunk.


readonly optional usage: IRUsage

Defined in: streaming.ts:794

Token usage if provided.