Class CombiningOutputParser

Class to combine multiple output parsers

Hierarchy

  • BaseOutputParser<object>
    • CombiningOutputParser

Constructors

  • Parameters

    • fields: CombiningOutputParserFields

    Returns CombiningOutputParser

  • Parameters

    • Rest ...parsers: BaseOutputParser<unknown>[]

    Returns CombiningOutputParser

Properties

outputDelimiter: string = "-----"
parsers: BaseOutputParser<unknown>[]

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: Callbacks

      Optional Callbacks object.

    Returns Promise<CombinedOutput>

    A Promise that resolves to a CombinedOutput object.

Generated using TypeDoc