Interface ToolCall

ToolCall represents a tool call made by the assistant.

interface ToolCall {
    function: {
        arguments: string;
        name: string;
    };
    id: string;
    type: string;
}

Properties

Properties

function: {
    arguments: string;
    name: string;
}

function represents the tool call function data.

Type declaration

  • arguments: string

    arguments represents the function arguments.

  • name: string

    name represents the name of the function.

id: string

id represents the autogenerated ID of the function.

type: string

type represents the type of tool called.