register method

Future<ModelInfo> register({
  1. String? id,
  2. required String name,
  3. required String url,
  4. required InferenceFramework framework,
  5. ModelCategory modality = ModelCategory.MODEL_CATEGORY_LANGUAGE,
  6. ModelArtifactType? artifactType,
  7. int? memoryRequirement,
  8. bool supportsThinking = false,
  9. bool supportsLora = false,
})

Register a single-file remote model with the SDK.

Delegates to rac_register_model_from_url_proto via RunAnywhereStorage.registerModel and returns the fully-populated ModelInfo proto. Mirrors Swift RunAnywhere.registerModel(id:name:url: framework:modality:artifactType:memoryRequirement:supportsThinking: supportsLora:) in both signature shape and return type.

Implementation

Future<ModelInfo> register({
  String? id,
  required String name,
  required String url,
  required InferenceFramework framework,
  ModelCategory modality = ModelCategory.MODEL_CATEGORY_LANGUAGE,
  ModelArtifactType? artifactType,
  int? memoryRequirement,
  bool supportsThinking = false,
  bool supportsLora = false,
}) => RunAnywhereStorage.registerModel(
  id: id,
  name: name,
  url: url,
  framework: framework,
  modality: modality,
  artifactType: artifactType,
  memoryRequirement: memoryRequirement,
  supportsThinking: supportsThinking,
  supportsLora: supportsLora,
);