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

Method load_local

finagent/memory/basic_memory.py:79–94  ·  view source on GitHub ↗
(
            self,
            memory_path: str = None,
            vectorstore: VectorStore = None,
    )

Source from the content-addressed store, hash-verified

77 return items, scores
78
79 def load_local(
80 self,
81 memory_path: str = None,
82 vectorstore: VectorStore = None,
83 ):
84
85 if memory_path is None:
86 memory_path = self.memory_path
87
88 """Load the memory from the local file."""
89 with open(os.path.join(memory_path, "memory.json"), "r") as rf:
90 memory = json.load(rf)
91
92 self.memory_path = memory_path
93 self.vectorstore = vectorstore
94 self.memory = memory
95
96 def save_local(self, memory_path = None) -> None:
97

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected