Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
Tpayne101/AgentOS-MVP
Tpayne101
/
AgentOS-MVP-V2
like
0
Build error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
AgentOS-MVP-V2
9.85 kB
1 contributor
History:
46 commits
Tpayne101
Update requirements.txt
e8b2c56
verified
2 months ago
.gitattributes
1.52 kB
initial commit
3 months ago
README.md
232 Bytes
initial commit
3 months ago
agentos_core.py
1.49 kB
Update agentos_core.py
2 months ago
app.py
612 Bytes
Update app.py
2 months ago
context_graph.py
885 Bytes
Update context_graph.py
2 months ago
context_memory.py
879 Bytes
Create context_memory.py
2 months ago
identity_core.py
953 Bytes
Create identity_core.py
2 months ago
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, {})
2 months ago
memory.py
1.2 kB
Create memory.py
2 months ago
memory_core.py
691 Bytes
Create memory_core.py
2 months ago
orchestrator.py
706 Bytes
Create orchestrator.py
2 months ago
requirements.txt
77 Bytes
Update requirements.txt
2 months ago
telemetry.py
609 Bytes
Create telemetry.py
2 months ago