FunctionObject interface

Defines a function that a model can call, including its name and argument schema.

Properties

description

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

name

The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

parameters

The function's parameters, described as a JSON Schema object.

strict

Whether generated arguments must strictly follow the parameter schema.

Property Details

description

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

description?: string

Property Value

string

name

The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

name: string

Property Value

string

parameters

The function's parameters, described as a JSON Schema object.

parameters?: FunctionParameters

Property Value

strict

Whether generated arguments must strictly follow the parameter schema.

strict?: boolean

Property Value

boolean