Tpayne101 commited on
Commit
eecb465
·
verified ·
1 Parent(s): d4fa4f2

Update agentos_core.py

Browse files
Files changed (1) hide show
  1. agentos_core.py +10 -1
agentos_core.py CHANGED
@@ -79,4 +79,13 @@ class AgentCore:
79
  def __init__(self):
80
  ...
81
  self.agent_id = create_agent_identity()
82
- print(f"🧩 Agent ID: {self.agent_id}")
 
 
 
 
 
 
 
 
 
 
79
  def __init__(self):
80
  ...
81
  self.agent_id = create_agent_identity()
82
+ print(f"🧩 Agent ID: {self.agent_id}")
83
+ def load_memory(self):
84
+ if os.path.exists(MEMORY_FILE):
85
+ with open(MEMORY_FILE, "r") as f:
86
+ return json.load(f)
87
+ return []
88
+
89
+ def save_memory(self):
90
+ with open(MEMORY_FILE, "w") as f:
91
+ json.dump(self.memory, f, indent=2)