Spaces:
Build error
Build error
Update agentos_core.py
Browse files- agentos_core.py +4 -0
agentos_core.py
CHANGED
|
@@ -2,6 +2,8 @@ import uuid
|
|
| 2 |
import json
|
| 3 |
import os
|
| 4 |
import time
|
|
|
|
|
|
|
| 5 |
from telemetry import log_event
|
| 6 |
from memory_core import update_memory, load_memory
|
| 7 |
|
|
@@ -43,6 +45,8 @@ def create_agent_identity():
|
|
| 43 |
# --- Agent Core ---
|
| 44 |
class AgentCore:
|
| 45 |
def __init__(self, model="gpt-4o-mini"):
|
|
|
|
|
|
|
| 46 |
self.agent_id = create_agent_identity()
|
| 47 |
self.memory = MemoryManager(self.agent_id)
|
| 48 |
self.context_graph = ContextGraph()
|
|
|
|
| 2 |
import json
|
| 3 |
import os
|
| 4 |
import time
|
| 5 |
+
from identity_core import IdentityManager
|
| 6 |
+
from context_graph import ContextGraph
|
| 7 |
from telemetry import log_event
|
| 8 |
from memory_core import update_memory, load_memory
|
| 9 |
|
|
|
|
| 45 |
# --- Agent Core ---
|
| 46 |
class AgentCore:
|
| 47 |
def __init__(self, model="gpt-4o-mini"):
|
| 48 |
+
self.identity = IdentityManager()
|
| 49 |
+
self.context = ContextGraph(self.identity.agent_id)
|
| 50 |
self.agent_id = create_agent_identity()
|
| 51 |
self.memory = MemoryManager(self.agent_id)
|
| 52 |
self.context_graph = ContextGraph()
|