Chunk of a single generation. Used for streaming.

Hierarchy (view full)

Implements

Constructors

Properties

Methods

Constructors

Properties

generationInfo?: Record<string, any>

Raw generation info response from the provider. May include things like reason for finishing (e.g. in OpenAI)

text: string

Generated text output

Methods