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

A tool that can be used by the model.

Type declaration

  • 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.

  • type: "function"