FunctionT: {
    defer_loading?: boolean;
    description?: string;
    name?: string;
    parameters?: any;
    short_description?: string;
    type: "function";
}

A tool that can be used by the model.

Type declaration

  • Optionaldefer_loading?: boolean

    If true, the function's loading is deferred.

  • Optionaldescription?: string

    A description of the function.

  • Optionalname?: string

    The name of the function.

  • Optionalparameters?: any

    The JSON Schema for the function's parameters.

    Supports a subset of JSON Schema. minLength, maxLength, minProperties, maxProperties, uniqueItems, contains, minContains, and maxContains are ignored and not enforced.

  • Optionalshort_description?: string

    A brief description of the function, shown to the model as a

    short summary of functions with defer_loading set to true.

  • type: "function"