Interface ToolChoiceFunction

ToolChoiceFunction represents a specific function choice.

interface ToolChoiceFunction {
    function: {
        name: string;
    };
    type: string;
}

Properties

Properties

function: {
    name: string;
}

function represents an object containing the name of the function.

Type declaration

  • name: string

    name represents the function name.

type: string

type represents the type of tool.