Type alias LLMResult

LLMResult: {
    generations: Generation[][];
    __run?: Record<string, any>;
    llmOutput?: Record<string, any>;
}

Contains all relevant information returned by an LLM.

Type declaration

  • generations: Generation[][]

    List of the things generated. Each input could have multiple generations, hence this is a list of lists.

  • Optional __run?: Record<string, any>

    Dictionary of run metadata

  • Optional llmOutput?: Record<string, any>

    Dictionary of arbitrary LLM-provider specific output.

Generated using TypeDoc