LLMStreamChunk
Defined in: core/options.ts:60
Properties
Section titled “Properties”finishReason?
Section titled “finishReason?”
optionalfinishReason:string|null
Defined in: core/options.ts:65
Indicates that the provider has finished producing output and includes the reason if available.
rawEvent?
Section titled “rawEvent?”
optionalrawEvent:unknown
Defined in: core/options.ts:73
Provider specific payload emitted at the same time as the text chunk. This is useful for debugging and tests.
text:
string
Defined in: core/options.ts:61
usage?
Section titled “usage?”
optionalusage:TokenUsage
Defined in: core/options.ts:69
Token usage information, typically available in the final chunk when the stream completes.