feat(chat): 实现批量动作存储并优化消息处理流程

新增批量动作记录存储功能,提升数据库写入性能。重构消息预处理逻辑,改进兴趣度计算和同步机制,优化用户信息和群组信息处理。添加配置选项控制批量存储开关,更新相关模板配置。
This commit is contained in:
Windpicker-owo
2025-10-05 17:45:44 +08:00
parent a7bc1b4f20
commit dccf1cffc9
8 changed files with 307 additions and 93 deletions

View File

@@ -32,7 +32,7 @@ class InterestCalculationResult:
):
self.success = success
self.message_id = message_id
self.interest_value = max(0.0, min(1.0, interest_value)) # 确保在0-1范围内
self.interest_value = interest_value
self.should_take_action = should_take_action
self.should_reply = should_reply
self.should_act = should_act