LlamacppDir class
Represents a detected llama.cpp directory with its root path.
This class is used to scan directories and detect valid llama.cpp installations, returning the root directory where llama.cpp is found.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
-
llamacliFullHelpOutput
→ Future<
String> -
Gets the full output of calling
llama-cli --help. Throws an exception if llama-cli is not found.latefinal -
llamacliFullVersionOutput
→ Future<
String> -
Gets the full output of calling
llama-cli --version. Throws an exception if llama-cli is not found.latefinal - rootPath → String
-
The root directory path where llama.cpp was detected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
version
→ Future<
String> -
Gets the version of the llama.cpp installation by calling llama-cli --version.
latefinal
Methods
-
getCliPath(
) → Future< String?> - Gets the path to the llama-cli binary.
-
getRelativePath(
String basePath) → String - Gets the relative path from a base directory to the detected root.
-
getServerPath(
) → Future< String?> - Gets the path to the llama-server binary.
-
isValid(
) → Future< bool> - Validates that the detected directory still contains llama.cpp.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
detect(
String path) → Future< LlamacppDir?> - Detects a llama.cpp installation starting from the given path.