TradingAgents/tradingagents/agents/analysts
google-labs-jules[bot] 3721aab110 test: add unit tests for analyst agents tool looping
Added comprehensive unit tests for `fundamentals_analyst`, `market_analyst`,
`social_media_analyst`, and `news_analyst` to verify that they correctly
handle recursive tool calling via `run_tool_loop`. A MockLLM was created
to simulate a two-turn conversation (tool call request followed by a final
report generation) to ensure the `.invoke()` bug does not regress. Added
missing `build_instrument_context` imports to those agents to prevent
NameErrors.

Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com>
2026-03-23 17:22:28 +00:00
..
fundamentals_analyst.py test: add unit tests for analyst agents tool looping 2026-03-23 17:22:28 +00:00
market_analyst.py test: add unit tests for analyst agents tool looping 2026-03-23 17:22:28 +00:00
news_analyst.py test: add unit tests for analyst agents tool looping 2026-03-23 17:22:28 +00:00
social_media_analyst.py test: add unit tests for analyst agents tool looping 2026-03-23 17:22:28 +00:00