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

Method add_recent_history

finagent/memory/interface.py:131–139  ·  view source on GitHub ↗
(
        self,
        type: str,
        symbol: str,
        data: Dict,
    )

Source from the content-addressed store, hash-verified

129 return res
130
131 def add_recent_history(
132 self,
133 type: str,
134 symbol: str,
135 data: Dict,
136 ) -> None:
137 recent_history = self._get_recent_history(type, symbol)
138 recent_history.append(data)
139 print(f"Add recent history for {type} {symbol}.")
140
141 def get_recent_history(
142 self,

Callers

nothing calls this directly

Calls 1

_get_recent_historyMethod · 0.95

Tested by

no test coverage detected