QVAC Logo

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

NameTypeRequired?Description
modelIdstringThe unique model identifier
blobCoreKeystringThe 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);
}

On this page