v2026.11.2
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.

ToolCall

A function call the model asked for. Run it, then return the result with Chat->AddToolResult.

Operations

GetArgument #

Get one argument as text (a number or boolean in its JSON form)

method : public : GetArgument(name:String) ~ String

Parameters

NameTypeDescription
nameStringparameter name

Return

TypeDescription
Stringargument text, or Nil if absent

GetArguments #

Get the call's arguments, an object keyed by parameter name

method : public : GetArguments() ~ JsonElement

Return

TypeDescription
JsonElementarguments

GetName #

Get the name of the function to call

method : public : GetName() ~ String

Return

TypeDescription
Stringfunction name

ToJson #

Converts the call to JSON, as it appears in an assistant message

method : public : ToJson() ~ JsonElement

Return

TypeDescription
JsonElementJSON element