pub trait ChatCapture: Send {
// Required methods
fn capture_recent_messages(&mut self) -> Vec<ChatMessage>;
fn name(&self) -> &'static str;
}Expand description
Trait for chat message capture. Each implementation provides a single source of truth for chat messages, eliminating the double-processing bug where both LogMonitor and ChatCapture detected the same messages.
Required Methods§
Sourcefn capture_recent_messages(&mut self) -> Vec<ChatMessage>
fn capture_recent_messages(&mut self) -> Vec<ChatMessage>
Capture recent chat messages since the last call. Implementations should use deduplication to avoid processing the same message twice.