Expand description
Unified process_turn orchestration.
Unified process_turn orchestration.
This module provides a single MenteDb::process_turn() method that
implements the full conversation-turn pipeline used by MCP servers,
cloud APIs, and any other client. The steps are:
- Embed query + retrieve context (speculative cache → hybrid search)
- Check pain signals
- Store episodic memory (with write inference)
- Detect actions, proactive recall, corrections, sentiment
- Detect phantoms + stream contradiction check
- Update trajectory + ghost memories
- Update speculative cache
- Extract facts + link edges
- Auto-maintenance (decay / archival / consolidation on intervals)
LLM-powered features (entity resolution, topic canonicalization,
contradiction verification, memory extraction) are not included
here — they are client-specific and should be layered on top of the
ProcessTurnResult by the caller.
Structs§
- Detected
Action - A detected action from the conversation.
- Pain
Warning - A pain warning matched against the current context.
- Proactive
Recall - A proactively recalled memory relevant to detected actions.
- Process
Turn Input - Input for a single conversation turn.
- Process
Turn Result - Result of processing a conversation turn.