A function tool call in a chat request.

interface ChatsToolCall {
    function?: FunctionCall;
    id?: string;
    type?: string;
}

Properties

Properties

function?: FunctionCall

The name and arguments of a function that should be called, as generated by the model.

Deprecated: function_call has been deprecated by OpenAI and replaced by tool_calls.

id?: string

ID of the tool call.

type?: string

Type of the tool. Currently, only "function" is supported.