Class for parsing the output of a tool-calling LLM into a JSON object if you are expecting only a single tool to be called.

Hierarchy

  • Toolkit<any>
    • JsonOutputKeyToolsParser

Constructors

Properties

initialParser: JsonOutputToolsParser
keyName: string

The type of tool calls to return.

returnId: boolean = false
returnSingle: boolean = false

Whether to return only the first tool call.

Methods

Generated using TypeDoc