pub struct EpisodicNode {Show 20 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>,
pub tags: Vec<String>,
pub vitals_gate: Option<String>,
pub vitals_phase: Option<String>,
pub vitals_trust: Option<f32>,
}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.
Deterministic semantic category tags for this episode (e.g. from ainl-semantic-tagger / tool sequence).
vitals_gate: Option<String>Coarse cognitive gate from the LLM completion that produced this episode: “pass” / “warn” / “fail”.
None when the provider did not return logprobs (Anthropic, Ollama, etc.).
vitals_phase: Option<String>Fine-grained cognitive phase + confidence, e.g. "reasoning:0.69".
vitals_trust: Option<f32>Scalar trust score in [0, 1]. Higher = more confident / lower entropy.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more