Doctor class final

Checks a host app or package against what the local_inference packages need. It reads files only: it runs no tool, uses no network and changes nothing. (dart run runs the build hooks of the package that holds the doctor before the doctor starts: see doctorUsage.)

Constructors

Doctor(String hostDir, {bool strict = false, bool verifyNatives = false, Map<String, String>? environment, NativeManifest? manifest, String? machineBundle})

Properties

environment → Map<String, String>
final
hashCode → int
The hash code for this object.
no setterinherited
hostDir → String
The host's folder (it holds its pubspec.yaml).
final
machineBundle → String
The llama.cpp bundle of this computer (its builds for dart test, flutter test, dart run).
final
manifest → NativeManifest
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
strict → bool
Whether warnings fail the run (DoctorReport.exitCode).
final
verifyNatives → bool
Whether to hash the native libraries against manifest.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run() → DoctorReport
Runs every check; throws FormatException when hostDir's pubspec.yaml is missing or cannot be read.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited