Type Alias MessageToolCall

MessageToolCall: {
    function: { arguments: { [key: string]: any }; name: string };
    id: string;
    type: "function";
}

A tool call requested by the assistant. Represents a single function invocation emitted in an assistant message.

Type declaration

  • function: { arguments: { [key: string]: any }; name: string }

    The function to invoke.

    • arguments: { [key: string]: any }

      Arguments passed to the function, keyed by parameter name.

    • name: string

      Name of the function to call.

  • id: string

    Unique identifier for this tool call, referenced by the tool result message via tool_call_id.

  • type: "function"

    Always "function" — the only supported tool call type.