TradingAgents/frontend
MarkLo127 9c0a9819e6 Implement Plan A1: Fast Mode Analysis
Features:
- Add analysis_mode parameter (fast/deep) to AnalysisRequest
- Fast mode (15-25 min): Disables investment and risk debates (max_debate_rounds=0)
- Deep mode (60 min): Default mode with debates enabled
- Update backend TradingService to handle analysis_mode
- Add analysis_mode form field to frontend with dropdown selector
- Update TypeScript interfaces to include analysis_mode

Changes:
- backend/app/models/schemas.py: Add analysis_mode field to AnalysisRequest
- backend/app/services/trading_service.py: Handle analysis_mode in create_config()
- backend/app/api/routes.py: Pass analysis_mode parameter to run_analysis()
- frontend/components/analysis/AnalysisForm.tsx: Add analysis_mode dropdown (fast/deep)
- frontend/lib/types.ts: Add analysis_mode to AnalysisRequest interface

When users select "fast mode", the system will:
1. Skip investment debate (max_debate_rounds = 0)
2. Skip risk debate (max_risk_discuss_rounds = 0)
3. Reduce analysis time from ~60 minutes to ~15-25 minutes
4. Still run all analyst reports with proper 500-1000 word counts
5. Provide initial decision without debate refinement

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-03-12 21:33:23 +08:00
..
app Fix: Resolve GraphRecursionError by passing config params to agents and increasing recursion_limit to 200 2026-03-12 17:17:23 +08:00
components Implement Plan A1: Fast Mode Analysis 2026-03-12 21:33:23 +08:00
context 2025-12-12 19:01:49 +08:00
contexts 2026-01-27 13:22:52 +08:00
hooks 2025-12-17 05:41:30 +08:00
lib Implement Plan A1: Fast Mode Analysis 2026-03-12 21:33:23 +08:00
public 2025-12-21 02:00:38 +08:00
.dockerignore 2025-12-12 05:43:08 +08:00
.gitignore 2025-11-20 21:56:47 +08:00
Dockerfile Replace next.config.ts rewrites with catch-all API proxy route 2026-03-12 11:37:12 +08:00
Dockerfile.railway 2026-03-11 16:56:32 +08:00
bun.lock 2026-03-10 19:07:11 +08:00
components.json 2025-11-20 21:56:47 +08:00
eslint.config.mjs 2025-12-12 05:57:55 +08:00
next.config.ts Replace next.config.ts rewrites with catch-all API proxy route 2026-03-12 11:37:12 +08:00
package.json 2026-03-10 18:58:03 +08:00
postcss.config.mjs 2025-11-20 21:56:47 +08:00
tsconfig.json 2025-11-20 21:56:47 +08:00