Represents model information from the Ollama server.
Contains model metadata including name, size, capabilities, context length, and other details. Used in model listing and model
information responses.
- public bool can_call { get; }
Returns whether the model supports tool/function calling
- public ArrayList<string> capabilities { get; set; }
List of supported features/capabilities.
- public int context_length { get; set; }
Context length (maximum tokens the model can process).
- public int64 created { get; set; }
Creation timestamp (Unix epoch) from v1/model API.
- public string digest { get; set; }
Model digest/hash identifier.
- public string display_name { owned get; }
Display name for lists: base name (with size) then variant in
brackets. split by "/"; base = length > 1 ? split[length-1] : name; prefix = length > 1 ? joinv(split[0:length-1]) : "". E.g.
"roojs/glm-345" → "glm-345 (4.1 GB) [roojs]", "org/roojs/glm-345" → "glm-345 (4.1 GB) [org/roojs]". Context is part of ModelUsage,
not Model. Used for sorting and display in list models and CLI.
- public int eval_count { get; set; }
Evaluation count (runtime, from ps() API).
- public int64 eval_duration { get; set; }
Evaluation duration in nanoseconds (runtime, from ps() API).
- public string expires_at { get; set; }
Expiration timestamp (runtime, from ps() API).
- public string id { get; set; }
Model identifier from v1/model list API (JSON "id"). Callers sync to
name when needed (e.g. Call.Models post-process).
- public bool is_embedding { get; }
Whether this model is embedding-only (capability from show API).
Single place for embedding check; Ollama may use "embed" or "embedding" in capabilities.
- public bool is_hidden { get; }
Whether this model should be hidden from model lists. True for derived
temp models (ollmchat-temp/ prefix only).
- public bool is_thinking { get; }
Returns whether the model supports thinking output
- public int64 load_duration { get; set; }
Load duration in nanoseconds (runtime, from ps() API).
- public string model { get; set; }
Model identifier from show API response.
- public string modified_at { get; set; }
Last modified timestamp in ISO 8601 format.
- public string name { get; set; }
Model name/identifier. This is the primary identifier for the model.
- public string name_with_size { owned get; }
Returns model name with size in parentheses (e.g., "llama3.1:70b (4.1
GB)")
- public string object { get; set; }
Object type from v1/model API (e.g. "model").
- public Options options { get; set; }
Default options parsed from model parameters.
- public string owned_by { get; set; }
Owner from v1/model API (e.g. "library", "roojs").
- public string parameters { get; set; }
- public int prompt_eval_count { get; set; }
Prompt evaluation count (runtime, from ps() API).
- public int64 prompt_eval_duration { get; set; }
Prompt evaluation duration in nanoseconds (runtime, from ps() API).
- public int64 size { get; set; }
Model size in bytes.
- public int64 size_vram { get; set; }
Model size in VRAM (runtime, from ps() API).
- public string subtitle_markup { owned get; }
Pango markup for subtitle: model name + capability badges (tools,
embedding, vision, thinking, cloud). Each badge has an icon prefix, distinct background colour and bold label.
- public int64 total_duration { get; set; }
Total duration in nanoseconds (runtime, from ps() API).