diff options
| author | batsumaru <> | 2026-09-15 16:23:26 +0900 |
|---|---|---|
| committer | batsumaru <> | 2026-09-15 16:23:26 +0900 |
| commit | 796c8978eaaf080146ba41ec49c75f3c7f3cf404 (patch) | |
| tree | e23495733dc9e9e5534c35731e1030fb2d3f5da9 /personal_agent/cli.py | |
| parent | 1a67c5edb6fa6165e99cc25ed380303ed817af09 (diff) | |
Wired long-term memory into agent
Diffstat (limited to 'personal_agent/cli.py')
| -rw-r--r-- | personal_agent/cli.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/personal_agent/cli.py b/personal_agent/cli.py index 7bd747a..57df7b0 100644 --- a/personal_agent/cli.py +++ b/personal_agent/cli.py @@ -1,6 +1,10 @@ +from pathlib import Path + from personal_agent.agent import Agent +from personal_agent.database.database import Database from personal_agent.identity import load_agent_identity, load_user_profile from personal_agent.llm import LLM +from personal_agent.memory.store import LongTermMemoryStore from personal_agent.tools import ( CalculatorTool, FileSystemListTool, @@ -23,11 +27,17 @@ tools.register(WeatherTool()) tools.register(FileSystemListTool()) tools.register(FileSystemReadTool()) +database = Database(Path("data/agent.db")) +database.migrate() + +long_term_memory_store = LongTermMemoryStore(database) + agent = Agent( llm, agent_identity, user_profile, tools, + long_term_memory_store, ) while True: |
