Skip to content

LLMStreamChunk

Defined in: core/options.ts:60

optional finishReason: string | null

Defined in: core/options.ts:65

Indicates that the provider has finished producing output and includes the reason if available.


optional rawEvent: 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


optional usage: TokenUsage

Defined in: core/options.ts:69

Token usage information, typically available in the final chunk when the stream completes.