Tpayne101 commited on
Commit
de6f849
·
verified ·
1 Parent(s): 199be13

Update agentos_core.py

Browse files
Files changed (1) hide show
  1. agentos_core.py +6 -1
agentos_core.py CHANGED
@@ -10,7 +10,12 @@ class AgentCore:
10
  class AgentCore:
11
  def __init__(self, agent_id): # Add this if it’s not there
12
  self.memory = MemoryManager(self.agent_id) # Move it here
13
- self.context_graph = ContextGraph()
 
 
 
 
 
14
  self.memory.save({
15
  "event": "init",
16
  "details": f"Agent {self.agent_id} initialized."
 
10
  class AgentCore:
11
  def __init__(self, agent_id): # Add this if it’s not there
12
  self.memory = MemoryManager(self.agent_id) # Move it here
13
+ Exit code: 1. Reason: Traceback (most recent call last):
14
+ File "/app/app.py", line 2, in <module>
15
+ from agentos_core import AgentCore
16
+ File "/app/agentos_core.py", line 13, in <module>
17
+ self.context_graph = ContextGraph()
18
+ NameError: name 'self' is not defined
19
  self.memory.save({
20
  "event": "init",
21
  "details": f"Agent {self.agent_id} initialized."