feat:为focus的no_reply决策加入更多信息,可以自定义频率

This commit is contained in:
SengokuCola
2025-06-23 15:36:31 +08:00
parent bf782aed70
commit 66f35bb5e7
12 changed files with 112 additions and 29 deletions

View File

@@ -20,7 +20,7 @@ class HFCVersionManager:
"""HFC版本号管理器"""
# 默认版本号
DEFAULT_VERSION = "v3.0.0"
DEFAULT_VERSION = "v3.1.0"
# 当前运行时版本号
_current_version: Optional[str] = None

View File

@@ -774,7 +774,7 @@ class PersonImpressionpProcessor(BaseProcessor):
chat_id: 聊天ID
segments: 消息段列表
"""
logger.info(f"开始为 {person_id} 基于 {len(segments)} 个消息段更新印象")
logger.debug(f"开始为 {person_id} 基于 {len(segments)} 个消息段更新印象")
try:
processed_messages = []

View File

@@ -99,7 +99,7 @@ class MemoryActivator:
for working_info_item in working_info:
obs_info_text += f"{working_info_item['type']}: {working_info_item['content']}\n"
logger.info(f"回忆待检索内容obs_info_text: {obs_info_text}")
# logger.info(f"回忆待检索内容obs_info_text: {obs_info_text}")
# 将缓存的关键词转换为字符串用于prompt
cached_keywords_str = ", ".join(self.cached_keywords) if self.cached_keywords else "暂无历史关键词"

View File

@@ -68,7 +68,7 @@ class ActionModifier:
hfc_obs = obs
if isinstance(obs, ChattingObservation):
chat_obs = obs
chat_content = obs.talking_message_str_truncate
chat_content = obs.talking_message_str_truncate_short
# 合并所有动作变更
merged_action_changes = {"add": [], "remove": []}