feat:为focus的no_reply决策加入更多信息,可以自定义频率
This commit is contained in:
@@ -20,7 +20,7 @@ class HFCVersionManager:
|
||||
"""HFC版本号管理器"""
|
||||
|
||||
# 默认版本号
|
||||
DEFAULT_VERSION = "v3.0.0"
|
||||
DEFAULT_VERSION = "v3.1.0"
|
||||
|
||||
# 当前运行时版本号
|
||||
_current_version: Optional[str] = None
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
|
||||
@@ -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 "暂无历史关键词"
|
||||
|
||||
@@ -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": []}
|
||||
|
||||
Reference in New Issue
Block a user