ToolCall.toJson

Converts to a JSON object matching the Ollama API tool call format.

struct ToolCall
const @safe
JSONValue
toJson
()

Return Value

Type: JSONValue

A JSONValue with "function" containing "name" and "arguments".

Meta