langchain.js
    Preparing search index...

    Import from "@langchain/core/output_parsers/openai_tools"

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    lc_namespace: string[] = ...
    lc_serializable: boolean = true
    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.

    • Returns string