Class for parsing the output of an LLM into a JSON object. Uses an instance of OutputFunctionsParser to parse the output.

Type Parameters

  • Output extends object = object

Hierarchy (view full)

Constructors

Properties

argsOnly: boolean = true
outputParser: OutputFunctionsParser

Methods

  • Parses the output and returns a JSON object. If argsOnly is true, only the arguments of the function call are returned.

    Parameters

    • generations: Generation[] | ChatGeneration[]

      The output of the LLM to parse.

    Returns Promise<Output>

    A JSON object representation of the function call or its arguments.

Generated using TypeDoc