ModelInfo class
What the loaded model is (from GGUF meta and the core's facts).
Constructors
-
ModelInfo({required String architecture, required int parameters, required String quantization, required int contextLength, required int trainedContext, required bool hasChatTemplate, required String? templateFamily, required bool nativeToolCalls, required int fileSize, String description = '', Map<
String, String> gguf = const {}}) -
const
Properties
- architecture → String
-
final
- contextLength → int
-
The loaded context.
final
- description → String
-
final
- fileSize → int
-
final
-
gguf
→ Map<
String, String> -
GGUF
general.*values (name, license, languages, base model) when present.final - hasChatTemplate → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nativeToolCalls → bool
-
Whether the model's template renders tools natively (Qwen3 / Granite / Llama style).
final
- parameters → int
-
final
- quantization → String
-
e.g. Q4_K_M (from the core's model description).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- templateFamily → String?
-
chatml | llama3 | gemma | phi3 | mistral | granite | gpt2-plain | custom; null when unknown.
final
- trainedContext → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited