ToolFunction.toJson

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

struct ToolFunction
const @safe
JSONValue
toJson
()

Return Value

Type: JSONValue

A JSONValue with "name", "description", and optionally "parameters".

Meta