TradingAgents/tradingagents/agents/utils
swj.premkumar 532ef1849b **Parallel Architecture (AsyncIO)**: Refactored `setup.py` to implement a "Fan-Out / Fan-In" pattern using LangGraph.
- `Market Analyst` now triggers `Social`, `News`, and `Fundamentals` analysts **concurrently**.
    - Added `Analyst Sync` node to synchronize parallel branches.
    - Added `Analyst Sync` node to synchronize parallel branches.
    - reduced total runtime by ~50% by overlapping heavy LLM/Tool operations.
- **Fail Fast Scraper**: Optimized `googlenews_utils.py` to timeout after ~30s (down from 3m) when blocked, ensuring rapid failover to backup vendors.

### Fixed
- **API Error 400 (Dangling Tool Use)**: Fixed crash in `Fundamentals Analyst` and others caused by unhandled tool exceptions (e.g. Rate Limits).
    - Wrapped all tools in `fundamental_data_tools.py`, `news_data_tools.py`, `core_stock_tools.py`, and `technical_indicators_tools.py` with `try/except` blocks.
    - Tools now return error strings instead of crashing, ensuring stricter API compliance and system resilience.
2026-01-14 07:29:12 -06:00
..
agent_states.py **Parallel Architecture (AsyncIO)**: Refactored `setup.py` to implement a "Fan-Out / Fan-In" pattern using LangGraph. 2026-01-14 07:29:12 -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 **Parallel Architecture (AsyncIO)**: Refactored `setup.py` to implement a "Fan-Out / Fan-In" pattern using LangGraph. 2026-01-14 07:29:12 -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