Model name.
Array of Message structs (conversation history).
Raw JSONValue generation options (backward-compatible).
Whether to stream the response (not fully supported).
Optional tool definitions for tool/function calling.
Structured output schema or JSONValue("json").
How long to keep the model loaded.
Typed OllamaOptions.
A JSONValue with "message", "done", and metadata. When the model calls a tool, response["message"]["tool_calls"] is populated.
Engages in a chat interaction using the specified model and message history.