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 full)

  • Toolkit<string>
    • OutputFunctionsParser

Constructors

Properties

Methods

Constructors

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