pub struct GraphEdge {
pub id: String,
pub source_id: String,
pub target_id: String,
pub edge_type: EdgeType,
pub weight: f64,
pub created_at: i64,
}Expand description
A directed edge in the memory knowledge graph.
Fields§
§id: StringUnique edge identifier.
source_id: StringSource memory ID.
target_id: StringTarget memory ID.
edge_type: EdgeTypeRelationship type between the two memories.
weight: f64Edge weight (0.0–1.0). For RelatedTo this is the cosine similarity score.
created_at: i64Unix timestamp of edge creation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GraphEdge
impl<'de> Deserialize<'de> for GraphEdge
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
Auto Trait Implementations§
impl Freeze for GraphEdge
impl RefUnwindSafe for GraphEdge
impl Send for GraphEdge
impl Sync for GraphEdge
impl Unpin for GraphEdge
impl UnsafeUnpin for GraphEdge
impl UnwindSafe for GraphEdge
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