fix(long_term_manager): 修改参数名称,从 'object' 改为 'obj' 以避免冲突
This commit is contained in:
@@ -100,7 +100,7 @@ _monitor_thread: threading.Thread | None = None
|
||||
_stop_event: threading.Event = threading.Event()
|
||||
|
||||
# 环境变量控制是否启用,防止所有环境一起开
|
||||
MEM_MONITOR_ENABLED = True
|
||||
MEM_MONITOR_ENABLED = False
|
||||
# 触发详细采集的阈值
|
||||
MEM_ABSOLUTE_THRESHOLD_MB = 1024.0 # 超过 1 GiB
|
||||
MEM_GROWTH_THRESHOLD_MB = 200.0 # 单次增长超过 200 MiB
|
||||
|
||||
@@ -643,7 +643,7 @@ class LongTermMemoryManager:
|
||||
subject=params.get("subject", source_stm.subject or "未知"),
|
||||
memory_type=params.get("memory_type", source_stm.memory_type or "fact"),
|
||||
topic=params.get("topic", source_stm.topic or source_stm.content[:50]),
|
||||
object=params.get("object", source_stm.object),
|
||||
obj=params.get("object", source_stm.object),
|
||||
attributes=params.get("attributes", source_stm.attributes),
|
||||
importance=params.get("importance", source_stm.importance),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user