langchain.js
    Preparing search index...

    Class to combine multiple output parsers

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • fields: CombiningOutputParserFields

      Returns CombiningOutputParser

    • Parameters

      • ...parsers: BaseOutputParser[]

      Returns CombiningOutputParser

    Properties

    lc_namespace: string[] = ...
    lc_serializable: boolean = true
    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.

      • Optionalcallbacks: any

        Optional Callbacks object.

      Returns Promise<CombinedOutput>

      A Promise that resolves to a CombinedOutput object.

    • Returns string