- **Risk Star Topology (Strategy 2)**: Replaced sequential "Round Robin" risk debate with a parallel "Fan-Out / Fan-In" architecture.
- `Trader` now triggers `Risky`, `Safe`, and `Neutral` analysts simultaneously.
- Implemented `Risk Sync` node and `merge_risk_states` reducer (AgentStates) to handle concurrent updates safely.
- Reduced Risk Phase latency by ~60%.
- **Batch Reflection (Strategy 1)**: Consolidated 5 sequential reflection calls into a single "Session Audit" call, reducing token usage and latency by ~80% in the post-trade phase.
- **Parallel I/O (Strategy 3)**: Refactored `tradingagents/dataflows/local.py` (Reddit News) to use `ThreadPoolExecutor` (max 10 workers), achieving 5x-10x speedup in data fetching.
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| alpaca.py | ||
| alpha_vantage.py | ||
| alpha_vantage_common.py | ||
| alpha_vantage_fundamentals.py | ||
| alpha_vantage_indicator.py | ||
| alpha_vantage_news.py | ||
| alpha_vantage_stock.py | ||
| config.py | ||
| google.py | ||
| googlenews_utils.py | ||
| interface.py | ||
| local.py | ||
| notifications.py | ||
| openai.py | ||
| rag_isolator.py | ||
| reddit_utils.py | ||
| stockstats_utils.py | ||
| utils.py | ||
| y_finance.py | ||
| yfin_utils.py | ||