A tool that can be used by the model.

interface Function {
    description?: string;
    name?: string;
    parameters?: unknown;
    type: "function";
}

Properties

description?: string

A description of the function.

name?: string

The name of the function.

parameters?: unknown

The JSON Schema for the function's parameters.

type: "function"