Commit Graph

22 Commits

Author SHA1 Message Date
MarkLo127 6a28ea523d Implement Plan A2: Parallelize Analyst Execution
Changes:
- Modify analyst graph connections to run in parallel instead of sequentially
- All analysts (Market, News, Fundamentals, Social) now start from START node simultaneously
- All analysts converge to Bull Researcher when complete
- Reduces analysis time by ~25-35% (4 analysts run in parallel instead of sequentially)

Technical Details:
- Previous: START → Market → News → Fundamentals → Bull Researcher (sequential)
- New: START → {Market, News, Fundamentals, Social} → Bull Researcher (parallel)
- Each analyst still has conditional edges to their tools and message clear nodes
- All analysts independently check completion and connect to Bull Researcher

Impact:
- Analysis time reduction: ~12-15 minutes saved per analysis
- Cumulative improvement with Plan A1 (fast mode):
  - Fast mode sequential: ~15-25 minutes
  - Fast mode parallel: ~10-15 minutes
  - Deep mode sequential: ~60 minutes
  - Deep mode parallel: ~40-45 minutes

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-12 21:34:07 +08:00
MarkLo127 4f219bd74e Fix: Resolve GraphRecursionError by passing config params to agents and increasing recursion_limit to 200
- Pass max_debate_rounds and max_risk_discuss_rounds from config to ConditionalLogic
- Pass max_recur_limit from config to Propagator
- Increase default recursion_limit from 100 to 200 in default_config.py
- Increase Propagator default max_recur_limit from 100 to 200

Also includes earlier fixes:
- Add 365-day minimum date range validation to get_stock_data tool
- Update market analyst prompt to specify 1-year data requirement
- Initialize all debate state fields (bull_history, bear_history, judge_decision, etc.)
- Add report completeness logging in trading_service.py
- Add debug logging in frontend results page

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-12 17:17:23 +08:00
MarkLo127 ea4a267bcf 2026-03-11 18:59:17 +08:00
MarkLo127 e0965a66d6 fix: Increase LLM max_tokens to 16384 to prevent report truncation. 2026-03-09 16:03:33 +08:00
MarkLo127 a90e0434a2 2026-03-09 14:56:49 +08:00
MarkLo 16e513a921 新增英文語系支援 2025-12-24 01:20:33 +08:00
MarkLo 95f6b25333 2025-12-13 02:26:49 +08:00
MarkLo 482d8fa6aa 2025-12-11 15:00:30 +08:00
MarkLo 9ef0f2265d 2025-12-11 01:31:44 +08:00
MarkLo 1c499e8a37 2025-12-01 02:56:47 +08:00
MarkLo 96b90b01da 2025-11-26 19:43:52 +08:00
MarkLo 8d679007bf 2025-11-25 17:03:17 +08:00
MarkLo 02b83a6ddd 2025-11-23 07:31:00 +08:00
MarkLo 91ad37412b 2025-11-23 03:14:49 +08:00
MarkLo 82829741b9 2025-11-16 05:28:16 +08:00
MarkLo d522d3ec43 2025-11-16 04:41:49 +08:00
MarkLo 5c52bb678a 2025-11-15 22:50:01 +08:00
luohy15 a6734d71bc WIP 2025-09-26 16:17:50 +08:00
mirza-samad-ahmed-baig f704828f89 Fix: Prevent infinite loops, enable reflection, and improve logging 2025-07-03 17:43:40 +05:00
Edward Sun da84ef43aa main works, cli bugs 2025-06-15 22:20:59 -07:00
maxer137 99789f9cd1 Add support for other backends, such as OpenRouter and olama
This aims to offer alternative OpenAI capable api's.
This offers people to experiment with running the application locally
2025-06-11 14:19:25 +02:00
Yijia-Xiao cc97cb6d5d chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00