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

Properties

description?: string

The description of the function, including guidance on when and how to call it, and guidance about what to tell the user when calling (if anything).

name?: string

The name of the function.

parameters?: unknown

Parameters of the function in JSON Schema.

type?: "function"

The type of the tool, i.e. function.