mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-11 05:33:36 +00:00
Replace single-stage MemoryConsolidator with a two-stage architecture: - Consolidator: lightweight token-budget triggered summarization, appends to HISTORY.md with cursor-based tracking - Dream: cron-scheduled two-phase processor that analyzes HISTORY.md and updates SOUL.md, USER.md, MEMORY.md via AgentRunner with edit_file tools for surgical, fault-tolerant updates New files: MemoryStore (pure file I/O), Dream class, DreamConfig, /dream and /dream-log commands. 89 tests covering all components.
21 lines
544 B
Python
21 lines
544 B
Python
"""Agent core module."""
|
|
|
|
from nanobot.agent.context import ContextBuilder
|
|
from nanobot.agent.hook import AgentHook, AgentHookContext, CompositeHook
|
|
from nanobot.agent.loop import AgentLoop
|
|
from nanobot.agent.memory import Consolidator, Dream, MemoryStore
|
|
from nanobot.agent.skills import SkillsLoader
|
|
from nanobot.agent.subagent import SubagentManager
|
|
|
|
__all__ = [
|
|
"AgentHook",
|
|
"AgentHookContext",
|
|
"AgentLoop",
|
|
"CompositeHook",
|
|
"ContextBuilder",
|
|
"Dream",
|
|
"MemoryStore",
|
|
"SkillsLoader",
|
|
"SubagentManager",
|
|
]
|