Use this option to force the model to call a specific custom tool.

interface ToolChoiceCustom {
    name: string;
    type: "custom";
}

Properties

Properties

name: string

The name of the custom tool to call.

type: "custom"

For custom tool calling, the type is always custom.