MCPcopy Create free account
hub / github.com/DVampire/FinAgent / save_local

Method save_local

finagent/memory/basic_memory.py:96–104  ·  view source on GitHub ↗
(self, memory_path = None)

Source from the content-addressed store, hash-verified

94 self.memory = memory
95
96 def save_local(self, memory_path = None) -> None:
97
98 if memory_path is None:
99 memory_path = self.memory_path
100
101 """Save the memory to the local file."""
102 with open(os.path.join(memory_path, "memory.json"), "w") as f:
103 json.dump(self.memory, f, indent=2)
104 self.vectorstore.save_local(memory_path)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected