Class for parsing the output of a tool-calling LLM into a JSON object.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

Properties

returnId: boolean = false

Methods

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

    Parameters

    • generations: ChatGeneration[]

      The output of the LLM to parse.

    Returns Promise<ParsedToolCall[]>

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

Generated using TypeDoc