Add message batching (debounce) for rapid-fire senders
Buffer messages per user+channel and wait for a configurable window (batch_window_seconds: 3) before analyzing. Combines burst messages into a single LLM call instead of analyzing each one separately. Replaces cooldown_between_analyses with the debounce approach. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ sentiment:
|
||||
context_messages: 3 # Number of previous messages to include as context
|
||||
rolling_window_size: 10 # Number of messages to track per user
|
||||
rolling_window_minutes: 15 # Time window for tracking
|
||||
cooldown_between_analyses: 2 # Seconds between analyzing same user's messages
|
||||
batch_window_seconds: 3 # Wait this long for more messages before analyzing (debounce)
|
||||
|
||||
game_channels:
|
||||
gta-online: "GTA Online"
|
||||
|
||||
Reference in New Issue
Block a user