Function to call for a tool choice.

interface ChoiceFunction {
    description?: string;
    name: string;
    parameters?: JSONObject;
}

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?: JSONObject

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.