52 std::vector<ModelAssetMetadata>
assets;
124 QStringView modelFormat);
QString sanitizePackageId(const QString &value)
Normalizes a human-provided package id into a stable filesystem-safe form.
QString defaultModelPackageDirectory()
Returns the default root directory for native model packages.
QString legacyWhisperEngineName()
Stable engine identifier for the legacy whisper.cpp adapter.
std::optional< ModelPackageManifest > modelPackageManifestFromJson(const QJsonObject &root, QString *errorMessage=nullptr)
Parses a product-owned package manifest from JSON.
QJsonObject modelPackageManifestToJson(const ModelPackageManifest &manifest)
Serializes a product-owned package manifest to JSON.
bool modelPackageSupportsCompatibility(const ModelPackageManifest &manifest, QStringView engine, QStringView modelFormat)
Reports whether a manifest advertises compatibility with a runtime marker pair.
QString cpuReferenceEngineName()
Stable engine identifier for the native CPU reference runtime.
QString cpuReferenceModelFormat()
Stable model-format identifier for the native CPU reference runtime.
QString legacyWhisperModelFormat()
Stable model-format identifier for the legacy whisper.cpp adapter.
One engine/model-format compatibility marker recorded in a package manifest.
QString engine
Stable engine identifier accepted by this package.
QString modelFormat
Engine-specific model format marker such as ggml.
Product-owned manifest data parsed from model.json.
ModelMetadata metadata
Product-owned immutable metadata about the packaged model.
QString format
Stable package format identifier.
std::vector< ModelAssetMetadata > assets
Packaged assets referenced by this manifest.
int schemaVersion
Schema version for this manifest.
QString sourceArtifact
Optional source artifact description used for diagnostics.
std::vector< ModelCompatibilityMarker > compatibleEngines
Compatible engines and model formats for this package.
Fully validated model package resolved from disk.
QString weightsPath
Resolved weights asset path used by the backend adapter.
QString description() const
Returns a human-readable description for diagnostics and logs.
ModelPackageManifest manifest
Parsed product-owned manifest data.
QString manifestPath
Resolved model.json path when the artifact is a native package.
QString packageRootPath
Resolved package root directory.
const ModelMetadata & metadata() const
Returns the immutable model metadata carried by this package.
bool isLegacyCompatibility() const
Reports whether this package came from the legacy raw-file compatibility path.
QString sourcePath
Original user-provided source path resolved to an absolute path.
Shared value types exchanged by the transcription pipeline.