Member Junction
    Preparing search index...

    Read seam for fetching the serialized model artifact bytes by file id (the read-side counterpart to the training IArtifactStore.save). Wraps MJ: Files / MJStorage in production; tests inject an in-memory map.

    interface IArtifactLoader {
        load(
            fileId: string,
            contextUser?: UserInfo,
        ): Promise<Uint8Array<ArrayBufferLike>>;
    }

    Implemented by

    Index

    Methods

    Methods

    • Fetch the serialized artifact bytes previously stored under fileId.

      Parameters

      • fileId: string

        the MLModel.ArtifactFileID value

      • OptionalcontextUser: UserInfo

        request user — required server-side for isolation/audit

      Returns Promise<Uint8Array<ArrayBufferLike>>

      the artifact bytes, or null when not found