mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-04 02:01:48 +03:00
refactor(memory): unify structured consolidation flow
This commit is contained in:
@@ -10,7 +10,6 @@ from pathlib import Path
|
||||
|
||||
from nanobot.agent.context import ContextBuilder
|
||||
from nanobot.runtime_context import RuntimeContextBlock
|
||||
from nanobot.session.summary import SessionSummary
|
||||
|
||||
|
||||
class _FakeDatetime(real_datetime):
|
||||
@@ -125,7 +124,7 @@ def test_session_summary_replaces_interleaved_recent_history_entry(tmp_path) ->
|
||||
"later telegram event",
|
||||
session_key="telegram:chat-1",
|
||||
)
|
||||
summary = SessionSummary(overview, real_datetime(2026, 8, 19, 10, 0))
|
||||
summary = {"text": overview, "last_active": "2026-08-19T10:00:00"}
|
||||
|
||||
prompt = builder.build_system_prompt(
|
||||
session_key=session_key,
|
||||
|
||||
Reference in New Issue
Block a user