TradingAgents/tradingagents/graph
dtarkent2-sys ba39a81e82 Fix parallel research/risk: use async+asyncio.gather instead of ThreadPoolExecutor
Sync ThreadPoolExecutor doesn't truly parallelize inside LangGraph nodes.
Switched to async functions with asyncio.to_thread() + asyncio.gather() —
the same pattern that works for the parallel analyst node.

Result: Research (Bull+Bear) and Risk (Agg+Con+Neu) now run concurrently.
Total analysis time reduced from ~450s to ~280s (~38% faster).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-20 18:01:54 +00:00
..
__init__.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
conditional_logic.py refactor: rename risky/safe agents to aggressive/conservative 2026-02-03 22:27:20 +00:00
parallel_analysts.py Fix parallel research/risk: use async+asyncio.gather instead of ThreadPoolExecutor 2026-02-20 18:01:54 +00:00
propagation.py feat: add footer statistics tracking with LangChain callbacks 2026-02-03 22:27:20 +00:00
reflection.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
setup.py Parallelize research & risk debate stages for ~25% faster analysis 2026-02-20 14:45:59 +00:00
signal_processing.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
trading_graph.py feat: parallelize analyst agents for ~3x speedup 2026-02-20 11:13:16 +00:00