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
- GetLicense
- GetModelFile
- GetModelInfo
- GetParameters
- GetSystem
- GetTemplate
- HasCapability
- ToString
GetCapabilities #
Get the model's capabilities (e.g. "completion", "tools", "vision", "thinking", "embedding")
method : public : GetCapabilities() ~ Vector<String>Return
| Type | Description |
|---|---|
| Vector<String> | capabilities, empty if the server did not report them |
GetLicense #
Get the license
method : public : GetLicense() ~ StringReturn
| Type | Description |
|---|---|
| String | license, or Nil |
GetModelFile #
Get the model file
method : public : GetModelFile() ~ StringReturn
| Type | Description |
|---|---|
| String | model file, or Nil |
GetModelInfo #
Get the architecture metadata (e.g. "general.architecture", "llama.context_length")
method : public : GetModelInfo() ~ JsonElementReturn
| Type | Description |
|---|---|
| JsonElement | metadata object, or Nil |
GetParameters #
Get the parameters
method : public : GetParameters() ~ StringReturn
| Type | Description |
|---|---|
| String | parameters, or Nil |
GetSystem #
Get the system
method : public : GetSystem() ~ StringReturn
| Type | Description |
|---|---|
| String | system, or Nil |
GetTemplate #
Get the template
method : public : GetTemplate() ~ StringReturn
| Type | Description |
|---|---|
| String | template, or Nil |