Fetch crowd-sourced probability estimates from Polymarket's public
Gamma API and inject them as context into fundamentals, sentiment,
and news analyst prompts.
- New tradingagents/signals/polymarket.py module
- Filter: >=40% probability, >=100K USD volume, financially relevant keywords
- Categorize: Fed/Rates, Economy, Trade, Regulation, Corporate, Crypto, Energy, Tech, Macro
- Config: polymarket_enabled (default True) in default_config.py
- CLI: --polymarket/--no-polymarket flags on analyze command
- State: polymarket_context field in AgentState
- 30 unit tests and integration tests
- Polymarket section in README
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.
InvestDebateState was missing bull_history, bear_history, judge_decision.
RiskDebateState was missing aggressive_history, conservative_history,
neutral_history, latest_speaker, judge_decision. This caused KeyError
in _log_state() and reflection, especially with edge-case config values.
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 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)