Message.toJson

Converts the message to a JSON object for the Ollama API.

struct Message
const @safe
JSONValue
toJson
()

Return Value

Type: JSONValue

A JSONValue with "role", "content", and optionally "images" and "tool_calls".

Meta