Class JsonOutputToolsParser

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

Hierarchy

Constructors

Methods

Constructors

  • Parameters

    • Optional kwargs: SerializedFields
    • Rest ..._args: never[]

    Returns JsonOutputToolsParser

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