Output of a single generation.

interface ChatGeneration {
    generationInfo?: Record<string, any>;
    message: BaseMessage;
    text: string;
}

Hierarchy (view full)

Implemented by

Properties

generationInfo?: Record<string, any>

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

message: BaseMessage
text: string

Generated text output