pub struct AinlMemoryNode {
pub id: Uuid,
pub node_type: AinlNodeType,
pub timestamp: i64,
pub edges: Vec<AinlEdge>,
}Expand description
A node in the AINL memory graph
Fields§
§id: Uuid§node_type: AinlNodeType§timestamp: i64§edges: Vec<AinlEdge>Implementations§
Source§impl AinlMemoryNode
impl AinlMemoryNode
Sourcepub fn new_delegation_episode(
agent_id: String,
delegated_to: String,
trace_id: String,
depth: u32,
) -> Self
pub fn new_delegation_episode( agent_id: String, delegated_to: String, trace_id: String, depth: u32, ) -> Self
Create a new episode node for an orchestration delegation
Sourcepub fn new_tool_episode(agent_id: String, tool_name: String) -> Self
pub fn new_tool_episode(agent_id: String, tool_name: String) -> Self
Create a new episode node for a tool use
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