refactor: gather the memory log, settlement and reflection in tradingagents/memory

- memory/log.py holds TradingMemoryLog, still imported from tradingagents.memory
- graph/settlement.py and graph/reflection.py move to memory/; Reflector leaves tradingagents.graph's exports
This commit is contained in:
Yijia-Xiao
2026-09-24 19:38:41 +00:00
parent b690dc7988
commit c50420fc5c
9 changed files with 17 additions and 11 deletions
+1 -1
View File
@@ -148,7 +148,7 @@ def test_settling_reads_the_graphs_own_config(monkeypatch):
graph = _graph(config)
graph.memory_log = graph.reflector = None # the settlement below is a stand-in
seen = []
from tradingagents.graph import settlement
from tradingagents.memory import settlement
monkeypatch.setattr(settlement, "settle_pending",
lambda *a: seen.append(get_vendor("core_stock_apis", "get_stock_data")))