TradingAgents/tradingagents/agents/utils
swj.premkumar 24edac65c4 - **Standalone HTML Reports**: Refactored report generation to perform server-side Markdown-to-HTML rendering using Python.
- Removed dependency on client-side `marked.js` and CDNs.
    - Reports are now fully offline-capable.
    - Cleaned up JSON keys to remove `.md` extensions for cleaner data structure.
- **Google News Adapter**: Implemented `get_google_global_news` adapter in `google.py` to match the standard `(curr_date, look_back_days)` interface, adhering to the Adapter Pattern and fixing signature mismatches.
- **Robust Demo Script**: Created `run_agent.py` (replacing demo scripts) with:
    - Automatic `.env` loading.
    - `backend_url` handling (clearing OpenAI defaults when using Anthropic).
    - Hardened configuration for "Deep Analysis" (Debate Rounds=2).
    - Pre-configured Google News vendor to bypass AlphaVantage rate limits.

### Fixed
- **Rate Limit Crash**: Fixed `AlphaVantageRateLimitError` by switching default news vendor to Google in `run_agent.py`.
2026-01-14 05:58:33 -06:00
..
agent_states.py - **Insider Veto Protocol (Rule B)**: Hard-coded safety gate in `trading_graph.py` that blocks ALL buy signals if Net Insider Selling exceeds $50M while the stock is in a technical downtrend (Price < 50 SMA). This prevents "Falling Knife" catches. 2026-01-13 05:27:24 -06:00
agent_utils.py ### Added 2026-01-13 06:40:07 -06:00
core_stock_tools.py - **Standalone HTML Reports**: Refactored report generation to perform server-side Markdown-to-HTML rendering using Python. 2026-01-14 05:58:33 -06:00
fundamental_data_tools.py - **Standalone HTML Reports**: Refactored report generation to perform server-side Markdown-to-HTML rendering using Python. 2026-01-14 05:58:33 -06:00
memory.py Adjusted default character truncation to safer levels for local embedding models. 2026-01-11 08:07:13 -06:00
news_data_tools.py - **Standalone HTML Reports**: Refactored report generation to perform server-side Markdown-to-HTML rendering using Python. 2026-01-14 05:58:33 -06:00
technical_indicators_tools.py - **Standalone HTML Reports**: Refactored report generation to perform server-side Markdown-to-HTML rendering using Python. 2026-01-14 05:58:33 -06:00