CollectedStream
Defined in: streaming.ts:770
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: streaming.ts:784
All chunks received.
content
Section titled “content”
readonlycontent:string
Defined in: streaming.ts:774
Full accumulated text content.
finishReason
Section titled “finishReason”
readonlyfinishReason:FinishReason
Defined in: streaming.ts:789
Finish reason from done chunk.
message
Section titled “message”
readonlymessage:IRMessage
Defined in: streaming.ts:779
The final message.
requestId?
Section titled “requestId?”
readonlyoptionalrequestId:string
Defined in: streaming.ts:799
Request ID from start chunk.
usage?
Section titled “usage?”
readonlyoptionalusage:IRUsage
Defined in: streaming.ts:794
Token usage if provided.