Tool.toJson

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

struct Tool
const @safe
JSONValue
toJson
()

Return Value

Type: JSONValue

A JSONValue with "type" and "function" fields.

Meta