Specifies a tool the model should use. Use to force the model to call a specific tool.

interface AssistantToolChoice {
    function?: AssistantToolChoiceFunction;
    type: "function" | "code_interpreter" | "file_search";
}

Properties

Properties

type: "function" | "code_interpreter" | "file_search"

The type of the tool. If type is function, the function name must be set