docs: show save_reports in the Python example

This commit is contained in:
Yijia-Xiao
2026-09-29 05:57:17 +00:00
parent f4828b84ea
commit c540c00778
+4 -1
View File
@@ -252,8 +252,11 @@ from tradingagents.default_config import DEFAULT_CONFIG
ta = TradingAgentsGraph(debug=True, config=DEFAULT_CONFIG.copy())
# forward propagate
_, decision = ta.propagate("NVDA", "2026-09-01")
state, decision = ta.propagate("NVDA", "2026-09-01")
print(decision)
# the same report tree the CLI saves, under results_dir/reports
ta.save_reports(state, "NVDA")
```
You can also adjust the default configuration to set your own choice of LLMs, debate rounds, etc.