LoRAApi class

Logical LoRA service contract. Adapter file acquisition, sandbox handles, and backend-specific load/unload execution remain adapter/backend-owned; C++ consumes only serialized request/result/state messages.

Constructors

LoRAApi(RpcClient _client)

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

apply(ClientContext? ctx, LoRAApplyRequest request) Future<LoRAApplyResult>
Apply one or more adapters to the current logical model/session.
checkCompatibility(ClientContext? ctx, LoRAAdapterConfig request) Future<LoraCompatibilityResult>
Check whether an adapter config is compatible with the current base model.
getCatalogEntry(ClientContext? ctx, LoraAdapterCatalogGetRequest request) Future<LoraAdapterCatalogGetResult>
Return one catalog entry by id.
list(ClientContext? ctx, LoRAState request) Future<LoRAState>
Return the current loaded-adapter snapshot. The request state can carry optional base_model_id filtering without introducing an empty request type.
listCatalog(ClientContext? ctx, LoraAdapterCatalogListRequest request) Future<LoraAdapterCatalogListResult>
Return catalog entries, optionally filtered by query.
markDownloadCompleted(ClientContext? ctx, LoraAdapterDownloadCompletedRequest request) Future<LoraAdapterDownloadCompletedResult>
Persist platform-reported local path state after download/import.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
queryCatalog(ClientContext? ctx, LoraAdapterCatalogQuery request) Future<LoraAdapterCatalogListResult>
Query catalog entries directly.
registerCatalogEntry(ClientContext? ctx, LoraAdapterCatalogEntry request) Future<LoraAdapterCatalogEntry>
Register catalog metadata. Local artifact state is ignored here and is persisted only by MarkDownloadCompleted after native/Web reports success.
remove(ClientContext? ctx, LoRARemoveRequest request) Future<LoRAState>
Remove named/path adapters, or clear all when LoRARemoveRequest.clear_all is true.
state(ClientContext? ctx, LoRAState request) Future<LoRAState>
Return the logical LoRA service state.
toString() String
A string representation of this object.
inherited

Operators

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