Output of a single generation.

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

Hierarchy (view full)

Implemented by

Properties

message: BaseMessage
text: string

Generated text output

generationInfo?: Record<string, any>

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

Generated using TypeDoc