feat:增加记忆提取能力

This commit is contained in:
SengokuCola
2025-11-26 16:09:21 +08:00
parent 157b1ed540
commit 0baa73aaf5
7 changed files with 139 additions and 454 deletions

View File

@@ -26,15 +26,15 @@ class ExpressionReflector:
bool: 是否执行了提问
"""
try:
logger.info(f"[Expression Reflection] 开始检查是否需要提问 (stream_id: {self.chat_id})")
logger.debug(f"[Expression Reflection] 开始检查是否需要提问 (stream_id: {self.chat_id})")
if not global_config.expression.reflect:
logger.info(f"[Expression Reflection] 表达反思功能未启用,跳过")
logger.debug(f"[Expression Reflection] 表达反思功能未启用,跳过")
return False
operator_config = global_config.expression.reflect_operator_id
if not operator_config:
logger.info(f"[Expression Reflection] Operator ID 未配置,跳过")
logger.debug(f"[Expression Reflection] Operator ID 未配置,跳过")
return False
# 检查是否在允许列表中