pub struct AinlMemoryNode {
pub id: Uuid,
pub memory_category: MemoryCategory,
pub importance_score: f32,
pub agent_id: String,
pub node_type: AinlNodeType,
pub edges: Vec<AinlEdge>,
}Expand description
A node in the AINL memory graph
Fields§
§id: Uuid§memory_category: MemoryCategory§importance_score: f32§agent_id: String§node_type: AinlNodeType§edges: Vec<AinlEdge>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
Sourcepub fn new_procedural_tools(
pattern_name: String,
tool_sequence: Vec<String>,
confidence: f32,
) -> Self
pub fn new_procedural_tools( pattern_name: String, tool_sequence: Vec<String>, confidence: f32, ) -> Self
Procedural node from a detected tool workflow (no compiled IR).
Sourcepub fn new_persona(
trait_name: String,
strength: f32,
learned_from: Vec<Uuid>,
) -> Self
pub fn new_persona( trait_name: String, strength: f32, learned_from: Vec<Uuid>, ) -> Self
Create a new persona trait node
pub fn episodic(&self) -> Option<&EpisodicNode>
pub fn semantic(&self) -> Option<&SemanticNode>
pub fn procedural(&self) -> Option<&ProceduralNode>
pub fn persona(&self) -> Option<&PersonaNode>
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
Source§impl PartialEq for AinlMemoryNode
impl PartialEq for AinlMemoryNode
Source§impl Serialize for AinlMemoryNode
impl Serialize for AinlMemoryNode
impl StructuralPartialEq for AinlMemoryNode
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