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

Method __init__

finagent/memory/basic_memory.py:18–29  ·  view source on GitHub ↗
(
            self,
            memory_path: str,
            vectorstore: VectorStore,
            memory: Optional[Dict] = None,
    )

Source from the content-addressed store, hash-verified

16
17class BasicMemory(BaseMemory):
18 def __init__(
19 self,
20 memory_path: str,
21 vectorstore: VectorStore,
22 memory: Optional[Dict] = None,
23 ) -> None:
24 if memory is None:
25 self.memory = {}
26 else:
27 self.memory = memory
28 self.memory_path = memory_path
29 self.vectorstore = vectorstore
30
31 def add(
32 self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected