pub struct ProcessTurnResult {Show 18 fields
pub context: Vec<ScoredMemory>,
pub stored_ids: Vec<MemoryId>,
pub episodic_id: Option<MemoryId>,
pub pain_warnings: Vec<PainWarning>,
pub cache_hit: bool,
pub inference_actions: u32,
pub detected_actions: Vec<DetectedAction>,
pub proactive_recalls: Vec<ProactiveRecall>,
pub correction_id: Option<MemoryId>,
pub sentiment: f32,
pub phantom_count: usize,
pub contradiction_count: usize,
pub predicted_topics: Vec<String>,
pub facts_extracted: usize,
pub edges_created: u32,
pub enrichment_pending: bool,
pub delta_added: Vec<MemoryId>,
pub delta_removed: Vec<MemoryId>,
}Expand description
Result of processing a conversation turn.
Fields§
§context: Vec<ScoredMemory>Retrieved context memories (scored and ranked).
stored_ids: Vec<MemoryId>IDs of newly stored memories this turn.
episodic_id: Option<MemoryId>The episodic memory ID for this turn.
pain_warnings: Vec<PainWarning>Pain warnings triggered by the user message.
cache_hit: boolWhether context came from the speculative cache.
inference_actions: u32Number of write-inference actions applied.
detected_actions: Vec<DetectedAction>Detected actions in the conversation.
proactive_recalls: Vec<ProactiveRecall>Proactively recalled memories.
correction_id: Option<MemoryId>Auto-correction memory ID if a correction was detected.
sentiment: f32Sentiment score (-1.0 to 1.0).
phantom_count: usizeNumber of phantom (knowledge gap) entities detected.
contradiction_count: usizeNumber of stream contradictions detected.
predicted_topics: Vec<String>Predicted next topics from trajectory analysis.
facts_extracted: usizeNumber of facts extracted and linked.
edges_created: u32Number of edges created from fact extraction.
enrichment_pending: boolWhether enrichment is pending (caller should invoke enrichment pipeline).
delta_added: Vec<MemoryId>Delta: memory IDs added since last turn.
delta_removed: Vec<MemoryId>Delta: memory IDs removed since last turn.
Trait Implementations§
Source§impl Clone for ProcessTurnResult
impl Clone for ProcessTurnResult
Source§fn clone(&self) -> ProcessTurnResult
fn clone(&self) -> ProcessTurnResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more