Class to combine multiple output parsers

Hierarchy (view full)

  • Toolkit<object>
    • CombiningOutputParser

Constructors

Properties

outputDelimiter: string = "-----"
parsers: BaseOutputParser[]

Methods

  • Method to get instructions on how to format the LLM output. The instructions are based on the parsers array and the outputDelimiter.

    Returns string

    A string with format instructions.

  • Method to parse an input string using the parsers in the parsers array. The parsed outputs are combined into a single object and returned.

    Parameters

    • input: string

      The input string to parse.

    • Optional callbacks: any

      Optional Callbacks object.

    Returns Promise<CombinedOutput>

    A Promise that resolves to a CombinedOutput object.

Generated using TypeDoc