getModelBySrc( )
Retrieves a model constant from the built-in registry by its model ID and blob core key.
function getModelBySrc(modelId: string, blobCoreKey: string): RegistryItem | undefined;Parameters
| Name | Type | Required? | Description |
|---|---|---|---|
| modelId | string | ✓ | The unique model identifier |
| blobCoreKey | string | ✓ | The Hyperdrive blob core key |
Returns
RegistryItem | undefined — The matching model constant, or undefined if not found. See getModelByName() for the full RegistryItem shape.
Example
import { getModelBySrc } from "@qvac/sdk";
const model = getModelBySrc("model-abc123", "blob-core-key-hex");
if (model) {
console.log(model.name, model.expectedSize);
}