feat(backtest): summarize a backtest result, or a decision log by its path

- callers no longer construct TradingMemoryLog to score a run; README and CLI pass the result
This commit is contained in:
Yijia-Xiao
2026-09-24 05:00:36 +00:00
parent 852ffead43
commit dcbff5ea42
5 changed files with 42 additions and 10 deletions
+1 -2
View File
@@ -325,11 +325,10 @@ One run gives one decision, which cannot tell you whether the system decides wel
```python
from tradingagents.backtest import iter_grid, run_backtest, summarize
from tradingagents.agents.utils.memory import TradingMemoryLog
dates = iter_grid("2026-06-01", "2026-08-01", every_n_days=7)
result = run_backtest(["NVDA", "AAPL"], dates, config, selected_analysts=["market", "news"])
print(summarize(TradingMemoryLog({"memory_log_path": str(result.log_path)})).render())
print(summarize(result).render())
```
From the CLI: