Save analysis results to disk with organized subfolders:
1_analysts/, 2_research/, 3_trading/, 4_risk/, 5_decision/
plus a consolidated complete_report.md.
Prompt user to save and display full report after analysis completes,
matching the existing stock analysis flow.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add tradingagents/prediction_market/ as a parallel module adapting the
multi-agent framework for Polymarket binary prediction markets.
Key components:
- 4 analysts: Event, Odds, Information, Sentiment
- YES/NO researchers with structured debate
- PM Trader with Kelly Criterion position sizing
- Risk debate team (aggressive/conservative/neutral)
- Polymarket REST API client (Gamma + CLOB, read-only)
- LangGraph state machine mirroring existing stock flow
- BM25 memory system for reflection/learning
- CLI integration with analysis mode selection and URL resolution
Analysis-only scope - no order placement in v1.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add effort parameter (high/medium/low) for Claude 4.5+ and 4.6 models,
consistent with OpenAI reasoning_effort and Google thinking_level.
Also add content normalization for Anthropic responses.
- Point requirements.txt to pyproject.toml as single source of truth
- Resolve welcome.txt path relative to module for CLI portability
- Include cli/static files in package build
- Extract shared normalize_content for OpenAI Responses API and
Gemini 3 list-format responses into base_client.py
- Update README install and CLI usage instructions
- OpenAI: add GPT-5.4, GPT-5.4 Pro; remove o-series and legacy GPT-4o
- Anthropic: add Claude Opus 4.6, Sonnet 4.6; remove legacy 4.1/4.0/3.x
- Google: add Gemini 3.1 Pro, 3.1 Flash Lite; remove deprecated
gemini-3-pro-preview and Gemini 2.0 series
- xAI: clean up model list to match current API
- Simplify UnifiedChatOpenAI GPT-5 temperature handling
- Add missing tradingagents/__init__.py (fixes pip install building)
Prevents UnicodeEncodeError on Windows where the default encoding
(cp1252/gbk) cannot handle Unicode characters in LLM output.
Closes#77, closes#114, closes#126, closes#215, closes#332
- Add save prompt after analysis with organized subfolder structure
- Fix report truncation by using sequential panels instead of Columns
- Add optional full report display prompt
- Add update_analyst_statuses() for unified status logic (pending/in_progress/completed)
- Normalize analyst selection to predefined ANALYST_ORDER for consistent execution
- Add message deduplication to prevent duplicates from stream_mode=values
- Restructure streaming loop so state handlers run on every chunk
- Add StatsCallbackHandler for tracking LLM calls, tool calls, and tokens
- Integrate callbacks into TradingAgentsGraph and all LLM clients
- Dynamic agent/report counts based on selected analysts
- Fix report completion counting (tied to agent completion)
- Added support for running CLI and Ollama server via Docker
- Introduced tests for local embeddings model and standalone Docker setup
- Enabled conditional Ollama server launch via LLM_PROVIDER