langchain.js
    Preparing search index...

    Class for parsing the output of an LLM. Can be configured to return only the arguments of the function call in the output.

    Hierarchy (View Summary)

    • Toolkit<string>
      • OutputFunctionsParser
    Index

    Constructors

    • Parameters

      • Optionalconfig: { argsOnly?: boolean }

      Returns OutputFunctionsParser

    Properties

    argsOnly: boolean = true
    lc_namespace: string[] = ...
    lc_serializable: boolean = true

    Methods

    • Parses the output and returns a string representation of the function call or its arguments.

      Parameters

      • generations: Generation[] | ChatGeneration[]

        The output of the LLM to parse.

      Returns Promise<string>

      A string representation of the function call or its arguments.

    • Returns string