Package version:

Interface FunctionDefinition

The input definition information for a function.

interface FunctionDefinition {
    description?: string;
    name: string;
    parameters: any;
}

Properties

description?: string

A description of what the function does, used by the model to choose when and how to call the function.

name: string

The name of the function to be called.

parameters: any

The parameters the functions accepts, described as a JSON Schema object.