MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / save

Method save

src/knowledge/graph.py:107–110  ·  view source on GitHub ↗
(self, path: Path | None = None)

Source from the content-addressed store, hash-verified

105 return g
106
107 def save(self, path: Path | None = None) -> None:
108 p = path or default_graph_path()
109 p.parent.mkdir(parents=True, exist_ok=True)
110 p.write_text(json.dumps(self.to_dict()), encoding="utf-8")
111
112 @classmethod
113 def load(cls, path: Path | None = None) -> "KnowledgeGraph":

Callers 1

Calls 2

to_dictMethod · 0.95
default_graph_pathFunction · 0.85

Tested by 1