Skip to content

CollectedStream

Defined in: ai.matey.utils/dist/types/streaming.d.ts:264

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

readonly chunks: readonly IRStreamChunk[]

Defined in: ai.matey.utils/dist/types/streaming.d.ts:276

All chunks received.


readonly content: string

Defined in: ai.matey.utils/dist/types/streaming.d.ts:268

Full accumulated text content.


readonly finishReason: FinishReason

Defined in: ai.matey.utils/dist/types/streaming.d.ts:280

Finish reason from done chunk.


readonly message: IRMessage

Defined in: ai.matey.utils/dist/types/streaming.d.ts:272

The final message.


readonly optional requestId: string

Defined in: ai.matey.utils/dist/types/streaming.d.ts:288

Request ID from start chunk.


readonly optional usage: IRUsage

Defined in: ai.matey.utils/dist/types/streaming.d.ts:284

Token usage if provided.