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

Method _get_recent_history

finagent/memory/interface.py:92–102  ·  view source on GitHub ↗
(self, type: str, symbol: str)

Source from the content-addressed store, hash-verified

90 return self.high_level_reflection_memorys[symbol]
91
92 def _get_recent_history(self, type: str, symbol: str):
93
94 assert type in ["market_intelligence", "low_level_reflection", "high_level_reflection"], \
95 f"type = {type} should be one of ['market_intelligence', 'low_level_reflection', 'high_level_reflection']."
96
97 if type == "market_intelligence":
98 return self.market_intelligence_recent_histories[symbol]
99 elif type == "low_level_reflection":
100 return self.low_level_reflection_recent_histories[symbol]
101 elif type == "high_level_reflection":
102 return self.high_level_reflection_recent_histories[symbol]
103
104 def add_memory(
105 self,

Callers 2

add_recent_historyMethod · 0.95
get_recent_historyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected