Interface ToolFunction

ToolFunction represents a function definition for tool calling.

interface ToolFunction {
    description?: string;
    name: string;
    parameters?: object;
    strict?: boolean;
}

Properties

description?: string

description represents a description of what the function does.

name: string

name represents the name of the function to be called.

parameters?: object

parameters represents the parameters the function accepts, described as a JSON Schema object.

strict?: boolean

strict represents whether to enable strict schema adherence when generating the function call.