Back to Eqiora docs Skip to main content

ReplayableCanonicalModelArtifact

Trait ReplayableCanonicalModelArtifact 

pub trait ReplayableCanonicalModelArtifact: CanonicalModelArtifact {
    // Required method
    fn replay_model(&self) -> Result<ReplayedCanonicalModel, Diagnostic>;
}
Description

A canonical Model artifact that can replay its exact bytes into a validated immutable Semantic Kernel program.

The CanonicalModelArtifact supertrait seals this extension. An identity-only reference deliberately does not implement replay: having a digest, Model ID, and revision does not imply possession of canonical content. The current Model owner implements this boundary beside its decoder before semantic consumers can admit it.

Required Methods§

fn replay_model(&self) -> Result<ReplayedCanonicalModel, Diagnostic>

Replay the canonical bytes and return their exact identity and validated semantic content as one indivisible value.

§Errors

Returns EQ0901 if canonical reconstruction unexpectedly fails or if the replayed Model identity/revision contradicts the artifact reference.

Implementors§