Fetching metadata from the HF Docker repository...
Update requirements.txt
8bcbb2b verified - 1.52 kB initial commit
- 232 Bytes initial commit
- 1.49 kB Update agentos_core.py
- 612 Bytes Update app.py
- 960 Bytes Create context_graph.py
- 879 Bytes Create context_memory.py
- 953 Bytes Create identity_core.py
import json, os class ContextMemoryGraph: def __init__(self, file_path="context_graph.json"): self.file_path = file_path self._init_graph() def _init_graph(self): if not os.path.exists(self.file_path): with open(self.file_path, "w") as f: json.dump({"context_links": {}}, f) def link_context(self, agent_id, key, value): with open(self.file_path, "r") as f: graph = json.load(f) if agent_id not in graph["context_links"]: graph["context_links"][agent_id] = {} graph["context_links"][agent_id][key] = value with open(self.file_path, "w") as f: json.dump(graph, f, indent=2) def get_context(self, agent_id): with open(self.file_path, "r") as f: graph = json.load(f) return graph["context_links"].get(agent_id, {}) 0 Bytes Create import json, os class ContextMemoryGraph: def __init__(self, file_path="context_graph.json"): self.file_path = file_path self._init_graph() def _init_graph(self): if not os.path.exists(self.file_path): with open(self.file_path, "w") as f: json.dump({"context_links": {}}, f) def link_context(self, agent_id, key, value): with open(self.file_path, "r") as f: graph = json.load(f) if agent_id not in graph["context_links"]: graph["context_links"][agent_id] = {} graph["context_links"][agent_id][key] = value with open(self.file_path, "w") as f: json.dump(graph, f, indent=2) def get_context(self, agent_id): with open(self.file_path, "r") as f: graph = json.load(f) return graph["context_links"].get(agent_id, {}) - 1.2 kB Create memory.py
- 691 Bytes Create memory_core.py
- 706 Bytes Create orchestrator.py
- 77 Bytes Update requirements.txt
- 609 Bytes Create telemetry.py