catalog method
Catalogued adapters, optionally narrowed to those compatible with
modelId.
Throws SDKException when the SDK is not initialized.
Implementation
Future<List<LoraAdapterCatalogEntry>> catalog({String? modelId}) async {
if (modelId == null) {
final result = await RunAnywhereLoRACapability.shared.listCatalog();
return List<LoraAdapterCatalogEntry>.unmodifiable(result.entries);
}
final result = await RunAnywhereLoRACapability.shared.queryCatalog(
LoraAdapterCatalogQuery(modelId: modelId),
);
return List<LoraAdapterCatalogEntry>.unmodifiable(result.entries);
}