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

Method _init_recent_histories

finagent/memory/interface.py:68–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self.high_level_reflection_memorys[symbol] = BasicMemory(memory_path = memory_path,
67 vectorstore = vecstore)
68 def _init_recent_histories(self):
69 for symbol in self.symbols:
70 if symbol not in self.market_intelligence_recent_histories:
71 self.market_intelligence_recent_histories[symbol] = deque(maxlen=self.max_recent_steps)
72 if symbol not in self.low_level_reflection_recent_histories:
73 self.low_level_reflection_recent_histories[symbol] = deque(maxlen=self.max_recent_steps)
74 if symbol not in self.high_level_reflection_recent_histories:
75 self.high_level_reflection_recent_histories[symbol] = deque(maxlen=self.max_recent_steps)
76
77 def get_memory(self, type: str, symbol: str):
78 return self._get_memory(type, symbol)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected