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.
Sealed through CanonicalModelArtifact. An identity-only reference does
not implement replay: a digest, Model ID, and revision do not supply the
content. The current Model type implements this trait next to its decoder.
Required Methods§
fn replay_model(&self) -> Result<ReplayedCanonicalModel, Diagnostic>
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.