Skip to main content

Module session

Module session 

Source
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.
SessionConfig
Configuration for session-aware pseudonymization.
SessionContext
Per-session context buffer.
SessionEntity
An entity observed within a session, tracked across messages.
SessionManager
Thread-safe session manager — stores all active sessions.
SessionStats
Safe session statistics (no PII).

Enums§

CorefMethod
Method used to resolve a coreference.
SensitivityLevel
Sensitivity level for a session — escalates when decision-making detected.