langchain.js
    Preparing search index...

    Type Alias OpenAIToolCall

    Use "tool_calls" field on AIMessages instead

    type OpenAIToolCall = {
        function: FunctionCall;
        id: string;
        index?: number;
        type: "function";
    }
    Index

    Properties

    Properties

    function: FunctionCall

    The function that the model called.

    id: string

    The ID of the tool call.

    index?: number
    type: "function"

    The type of the tool. Currently, only function is supported.