Interface ToolDef

Source
Expand description

A tool definition from the request's tools array, normalised across formats.

interface ToolDef {
    description?: string;
    name: string;
    parameters?: unknown;
}

Properties§

§readonly description?: string

A description of what the tool does.

§readonly name: string

The tool function name.

§readonly parameters?: unknown

JSON Schema for the tool's parameters, passed through as-is.