ModelSource class abstract

The acquisition seam: where model weights come from and how they're verified. A provider concern (like FlagsSource), not a bridge onto juice_network — so HTTP-with-resume, a CDN client, or a bundled-asset copy are all just implementations.

Contract: fetch MUST verify model.sha256 against the downloaded bytes and, on mismatch, delete the file and throw ModelChecksumException — unverified weights are never reported present.

Implementers

Constructors

ModelSource()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete(LlmModel model, String destinationPath) Future<void>
Remove the weights at destinationPath (free disk).
fetch(LlmModel model, String destinationPath) Stream<ModelFetchProgress>
Acquire model to destinationPath, streaming progress. Resumable implementations pick up a partial file; all implementations verify the checksum before the terminal done event.
isPresent(LlmModel model, String destinationPath) Future<bool>
Whether verified weights already sit at destinationPath.
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