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

Type declaration

  • function: FunctionCall

    The function that the model called.

  • id: string

    The ID of the tool call.

  • Optionalindex?: number
  • type: "function"

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

Use "tool_calls" field on AIMessages instead