pub enum EdgeType {
RelatedTo,
SharesEntity,
Precedes,
LinkedBy,
}Expand description
Edge type for memory knowledge graph relationships (CE-5).
Variants§
RelatedTo
Cosine similarity ≥ 0.85 — two memories are semantically similar.
Both memories reference the same named entity (CE-4 tags).
Precedes
Temporal ordering — source was created before target.
LinkedBy
Explicit user/agent-created link.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EdgeType
impl<'de> Deserialize<'de> for EdgeType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EdgeType
impl StructuralPartialEq for EdgeType
Auto Trait Implementations§
impl Freeze for EdgeType
impl RefUnwindSafe for EdgeType
impl Send for EdgeType
impl Sync for EdgeType
impl Unpin for EdgeType
impl UnsafeUnpin for EdgeType
impl UnwindSafe for EdgeType
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