Expand description
Session-aware context buffer for cross-message privacy.
Tracks entities seen within a conversation session, enabling:
- Coreference resolution: “He” → PERSON_5 (from prior messages)
- Abbreviation matching: “TM” → ORG_7 (Tata Motors)
- Sensitivity escalation: decision-trace keyword detection
- Cross-message consistency: session-aware fuzzy matching with lower thresholds
Structs§
- Coreference
- A coreference mapping: pronoun/abbreviation → entity token.
- Session
Config - Configuration for session-aware pseudonymization.
- Session
Context - Per-session context buffer.
- Session
Entity - An entity observed within a session, tracked across messages.
- Session
Manager - Thread-safe session manager — stores all active sessions.
- Session
Stats - Safe session statistics (no PII).
Enums§
- Coref
Method - Method used to resolve a coreference.
- Sensitivity
Level - Sensitivity level for a session — escalates when decision-making detected.