ToolFunction

Function schema for tool/function calling definitions.

Used inside Tool when registering callable tools with the model.

Members

Functions

toJson
JSONValue toJson()

Converts to a JSON object for the Ollama API tools array.

Variables

description
string description;

Human-readable description.

name
string name;

Function name as called by the model.

parameters
JSONValue parameters;

JSON Schema object defining the function's parameters.

Meta