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)



argsOnly: boolean = true
outputParser: OutputFunctionsParser


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


    • 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