Class OutputFunctionsParser

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

Hierarchy

  • BaseLLMOutputParser<string>
    • OutputFunctionsParser

Constructors

Properties

Methods

Constructors

  • Parameters

    • Optional config: {
          argsOnly?: boolean;
      }
      • Optional argsOnly?: boolean

    Returns OutputFunctionsParser

Properties

argsOnly: 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.

Generated using TypeDoc