langchain.js
    Preparing search index...

    Output of a single generation.

    interface Generation {
        generationInfo?: Record<string, any>;
        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)

    text: string

    Generated text output