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.
Properties
Section titled “Properties”chunks
Section titled “chunks”
readonlychunks: readonlyIRStreamChunk[]
Defined in: ai.matey.utils/dist/types/streaming.d.ts:276
All chunks received.
content
Section titled “content”
readonlycontent:string
Defined in: ai.matey.utils/dist/types/streaming.d.ts:268
Full accumulated text content.
finishReason
Section titled “finishReason”
readonlyfinishReason:FinishReason
Defined in: ai.matey.utils/dist/types/streaming.d.ts:280
Finish reason from done chunk.
message
Section titled “message”
readonlymessage:IRMessage
Defined in: ai.matey.utils/dist/types/streaming.d.ts:272
The final message.
requestId?
Section titled “requestId?”
readonlyoptionalrequestId:string
Defined in: ai.matey.utils/dist/types/streaming.d.ts:288
Request ID from start chunk.
usage?
Section titled “usage?”
readonlyoptionalusage:IRUsage
Defined in: ai.matey.utils/dist/types/streaming.d.ts:284
Token usage if provided.