DartBridgeModelPaths class

Model path utilities bridge. Wraps C++ rac_model_paths.h functions. Matches Swift's CppBridge.ModelPaths exactly.

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

extractModelId(String path) String?
Extract model ID from a file path
getFrameworkDirectory(InferenceFramework framework) String?
Get framework directory from C++. Returns: {base_dir}/RunAnywhere/Models/{framework}/ Matches Swift: CppBridge.ModelPaths.getFrameworkDirectory()
getModelFolder(String modelId, InferenceFramework framework) String?
Get model folder from C++. Returns: {base_dir}/RunAnywhere/Models/{framework}/{modelId}/ Matches Swift: CppBridge.ModelPaths.getModelFolder()
getModelsDirectory() String?
Get the models directory from C++. Returns: {base_dir}/RunAnywhere/Models/ Matches Swift: CppBridge.ModelPaths.getModelsDirectory()
inferFileRole(String filename, int modalityProto) int
Infer the descriptor role for a sidecar filename. Delegates to the shared commons classifier rac_infer_model_file_role so the heuristic stays byte-identical with the C++ resolver and every other SDK. modalityProto / the return value are proto ModelCategory / ModelFileRole int values. Returns the primary-model role (1) on any FFI failure.
isModelPath(String path) bool
Check if a path is within the models directory
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveArtifact(ModelInfo model) ModelPathResolution?
Resolve primary and companion paths for a downloaded model artifact.
resolveModelFilePath(ModelInfo model) Future<String?>
Resolve the actual model file path for loading. Delegates to C++ rac_model_paths_resolve_artifact() which handles model artifact roots, primary model selection, and companion file discovery.
setBaseDirectory([String? path]) Future<void>
Set the base directory for model storage. Must be called during SDK initialization. Matches Swift: CppBridge.ModelPaths.setBaseDirectory()
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance DartBridgeModelPaths
final