v2026.11.3
All Bundles
Bundle

Ollama local LLM client. Runs models (Llama, Mistral, Phi, Qwen, etc.) locally via the Ollama server. Supports text generation, chat sessions with tool calling, structured (JSON schema) output, thinking models, images, batch embeddings and model management. Every request completes before returning -- responses are not streamed, so a long generation produces nothing until it finishes. Compile with -lib ollama.

ModelInfo

Ollama model information, from Model->Show

Operations

GetCapabilities #

Get the model's capabilities (e.g. "completion", "tools", "vision", "thinking", "embedding")

method : public : GetCapabilities() ~ Vector<String>

Return

TypeDescription
Vector<String>capabilities, empty if the server did not report them

GetLicense #

Get the license

method : public : GetLicense() ~ String

Return

TypeDescription
Stringlicense, or Nil

GetModelFile #

Get the model file

method : public : GetModelFile() ~ String

Return

TypeDescription
Stringmodel file, or Nil

GetModelInfo #

Get the architecture metadata (e.g. "general.architecture", "llama.context_length")

method : public : GetModelInfo() ~ JsonElement

Return

TypeDescription
JsonElementmetadata object, or Nil

GetParameters #

Get the parameters

method : public : GetParameters() ~ String

Return

TypeDescription
Stringparameters, or Nil

GetSystem #

Get the system

method : public : GetSystem() ~ String

Return

TypeDescription
Stringsystem, or Nil

GetTemplate #

Get the template

method : public : GetTemplate() ~ String

Return

TypeDescription
Stringtemplate, or Nil

HasCapability #

Checks for a capability

method : public : HasCapability(capability:String) ~ Bool

Parameters

NameTypeDescription
capabilityStringcapability name (e.g. "tools")

Return

TypeDescription
Booltrue if the model has it

ToString #

String representation of the instance

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation of the instance