The parameters specific to chat functions.

interface TextChatParameterFunction {
    description?: string;
    name: string;
    parameters?: Record<string, 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.

parameters?: Record<string, any>

The parameters the functions accepts, described as a JSON Schema object. See the JSON Schema reference for documentation about the format. Omitting parameters defines a function with an empty parameter list.