pub struct AinlGraphArtifact {
pub agent_id: String,
pub snapshot: AgentGraphSnapshot,
pub validation: GraphValidationReport,
}Expand description
A loaded, validated AINL graph artifact (memory substrate view for one agent).
Fields§
§agent_id: String§snapshot: AgentGraphSnapshot§validation: GraphValidationReportImplementations§
Source§impl AinlGraphArtifact
impl AinlGraphArtifact
Sourcepub fn load(store: &SqliteGraphStore, agent_id: &str) -> Result<Self, String>
pub fn load(store: &SqliteGraphStore, agent_id: &str) -> Result<Self, String>
Load agent graph from store. Fails if validation reports dangling edges.
Sourcepub fn from_snapshot(snapshot: AgentGraphSnapshot) -> Self
pub fn from_snapshot(snapshot: AgentGraphSnapshot) -> Self
Wrap a snapshot without re-validating (tests / transfer). Caller must validate separately if needed.
Trait Implementations§
Source§impl Clone for AinlGraphArtifact
impl Clone for AinlGraphArtifact
Source§fn clone(&self) -> AinlGraphArtifact
fn clone(&self) -> AinlGraphArtifact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AinlGraphArtifact
impl RefUnwindSafe for AinlGraphArtifact
impl Send for AinlGraphArtifact
impl Sync for AinlGraphArtifact
impl Unpin for AinlGraphArtifact
impl UnsafeUnpin for AinlGraphArtifact
impl UnwindSafe for AinlGraphArtifact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more