pub struct EpisodicNode {Show 16 fields
pub turn_id: Uuid,
pub timestamp: i64,
pub tool_calls: Vec<String>,
pub delegation_to: Option<String>,
pub trace_event: Option<Value>,
pub turn_index: u32,
pub user_message_tokens: u32,
pub assistant_response_tokens: u32,
pub tools_invoked: Vec<String>,
pub persona_signals_emitted: Vec<String>,
pub sentiment: Option<Sentiment>,
pub flagged: bool,
pub conversation_id: String,
pub follows_episode_id: Option<String>,
pub user_message: Option<String>,
pub assistant_response: Option<String>,
}Expand description
Episodic memory payload (one turn / moment).
Fields§
§turn_id: Uuid§timestamp: i64§tool_calls: Vec<String>§delegation_to: Option<String>§trace_event: Option<Value>§turn_index: u32§user_message_tokens: u32§assistant_response_tokens: u32§tools_invoked: Vec<String>Preferred list of tools for analytics; mirrors tool_calls when not set explicitly.
persona_signals_emitted: Vec<String>Persona signal names emitted this turn (Vec, never Option). Omitted JSON → [].
Serialized even when empty (no skip_serializing_if). Backfill: read_node → patch → write_node.
sentiment: Option<Sentiment>§flagged: bool§conversation_id: String§follows_episode_id: Option<String>§user_message: Option<String>Optional raw user message for offline extractors (ainl-graph-extractor); omitted unless set.
assistant_response: Option<String>Optional assistant reply text for offline extractors; omitted unless set.
Implementations§
Source§impl EpisodicNode
impl EpisodicNode
Sourcepub fn effective_tools(&self) -> &[String]
pub fn effective_tools(&self) -> &[String]
Effective tool list: tools_invoked if non-empty, else tool_calls.
Trait Implementations§
Source§impl Clone for EpisodicNode
impl Clone for EpisodicNode
Source§fn clone(&self) -> EpisodicNode
fn clone(&self) -> EpisodicNode
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 EpisodicNode
impl Debug for EpisodicNode
Source§impl<'de> Deserialize<'de> for EpisodicNode
impl<'de> Deserialize<'de> for EpisodicNode
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 EpisodicNode
impl PartialEq for EpisodicNode
Source§impl Serialize for EpisodicNode
impl Serialize for EpisodicNode
impl StructuralPartialEq for EpisodicNode
Auto Trait Implementations§
impl Freeze for EpisodicNode
impl RefUnwindSafe for EpisodicNode
impl Send for EpisodicNode
impl Sync for EpisodicNode
impl Unpin for EpisodicNode
impl UnsafeUnpin for EpisodicNode
impl UnwindSafe for EpisodicNode
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