pub struct AinlMemoryNode {
pub id: Uuid,
pub node_type: AinlNodeType,
pub edges: Vec<AinlEdge>,
}Expand description
A node in the AINL memory graph
Fields§
§id: UuidUnique node identifier
node_type: AinlNodeTypeThe node’s type and payload
edges: Vec<AinlEdge>Edges to other nodes
Implementations§
Source§impl AinlMemoryNode
impl AinlMemoryNode
Sourcepub fn new_episode(
turn_id: Uuid,
timestamp: i64,
tool_calls: Vec<String>,
delegation_to: Option<String>,
trace_event: Option<Value>,
) -> Self
pub fn new_episode( turn_id: Uuid, timestamp: i64, tool_calls: Vec<String>, delegation_to: Option<String>, trace_event: Option<Value>, ) -> Self
Create a new episode node
Sourcepub fn new_fact(fact: String, confidence: f32, source_turn_id: Uuid) -> Self
pub fn new_fact(fact: String, confidence: f32, source_turn_id: Uuid) -> Self
Create a new semantic fact node
Sourcepub fn new_pattern(pattern_name: String, compiled_graph: Vec<u8>) -> Self
pub fn new_pattern(pattern_name: String, compiled_graph: Vec<u8>) -> Self
Create a new procedural pattern node
Trait Implementations§
Source§impl Clone for AinlMemoryNode
impl Clone for AinlMemoryNode
Source§fn clone(&self) -> AinlMemoryNode
fn clone(&self) -> AinlMemoryNode
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 moreSource§impl Debug for AinlMemoryNode
impl Debug for AinlMemoryNode
Source§impl<'de> Deserialize<'de> for AinlMemoryNode
impl<'de> Deserialize<'de> for AinlMemoryNode
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 AinlMemoryNode
impl RefUnwindSafe for AinlMemoryNode
impl Send for AinlMemoryNode
impl Sync for AinlMemoryNode
impl Unpin for AinlMemoryNode
impl UnsafeUnpin for AinlMemoryNode
impl UnwindSafe for AinlMemoryNode
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