register method
Add adapter to the LoRA catalog and register its downloadable
artifact.
LoraAdapterCatalogEntry no longer carries url/filename/size/checksum
metadata (idl/lora_options.proto: "everything generic about the
artifact ... lives on the ModelInfo record for this adapter"), so the
caller supplies the artifact describing where/how to fetch the
adapter bytes.
Throws SDKException when registration fails.
Implementation
Future<void> register(
LoraAdapterCatalogEntry adapter,
ModelInfo artifact,
) async {
await RunAnywhereLoRACapability.shared.registerArtifact(adapter, artifact);
}