langchain.js
    Preparing search index...

    Interface ChatGeneration

    Output of a single generation.

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

    Hierarchy (View Summary)

    Implemented by

    Index

    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