Converts the message to a JSON object for the Ollama API.
A JSONValue with "role", "content", and optionally "images" and "tool_calls".
See Implementation
Converts the message to a JSON object for the Ollama API.