ModelInfo class
Information about a model - in-memory entity Matches Swift ModelInfo from Public/Extensions/Models/ModelTypes.swift
Constructors
- ModelInfo({required String id, required String name, required ModelCategory category, required ModelFormat format, required InferenceFramework framework, Uri? downloadURL, Uri? localPath, ModelArtifactType? artifactType, int? downloadSize, int? contextLength, bool supportsThinking = false, ThinkingTagPattern? thinkingPattern, String? description, ModelSource? source, DateTime? createdAt, DateTime? updatedAt})
-
ModelInfo.fromJson(Map<
String, dynamic> json) -
factory
Properties
- artifactType → ModelArtifactType
-
final
- category → ModelCategory
-
final
- contextLength → int?
-
final
- createdAt → DateTime
-
final
- description → String?
-
final
- downloadSize → int?
-
final
- downloadURL → Uri?
-
final
- format → ModelFormat
-
final
- framework → InferenceFramework
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
final
- isAvailable → bool
-
Whether this model is available for use
no setter
- isBuiltIn → bool
-
Whether this is a built-in platform model
no setter
- isDownloaded → bool
-
Whether this model is downloaded and available locally
no setter
- localPath ↔ Uri?
-
getter/setter pair
- name → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- source → ModelSource
-
final
- supportsThinking → bool
-
final
- thinkingPattern → ThinkingTagPattern?
-
final
- updatedAt ↔ DateTime
-
getter/setter pair
Methods
-
copyWith(
{String? id, String? name, ModelCategory? category, ModelFormat? format, InferenceFramework? framework, Uri? downloadURL, Uri? localPath, ModelArtifactType? artifactType, int? downloadSize, int? contextLength, bool? supportsThinking, ThinkingTagPattern? thinkingPattern, String? description, ModelSource? source, DateTime? createdAt, DateTime? updatedAt}) → ModelInfo - Copy with modifications
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - JSON serialization
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override