TradingAgents/tradingagents/agents/analysts
google-labs-jules[bot] 9cf3a023fa fix: use run_tool_loop instead of invoke in analyst agents
This commit updates the `fundamentals_analyst`, `market_analyst`,
`social_media_analyst`, and `news_analyst` files to use `run_tool_loop`
instead of `.invoke()`. Using `.invoke()` resulted in the LLM execution
stopping immediately upon a tool call request without executing the tool,
returning an empty report or raw JSON. The `run_tool_loop` function
ensures tools are executed recursively and the final text content is
returned.

Co-authored-by: aguzererler <6199053+aguzererler@users.noreply.github.com>
2026-03-23 17:00:35 +00:00
..
fundamentals_analyst.py fix: use run_tool_loop instead of invoke in analyst agents 2026-03-23 17:00:35 +00:00
market_analyst.py fix: use run_tool_loop instead of invoke in analyst agents 2026-03-23 17:00:35 +00:00
news_analyst.py fix: use run_tool_loop instead of invoke in analyst agents 2026-03-23 17:00:35 +00:00
social_media_analyst.py fix: use run_tool_loop instead of invoke in analyst agents 2026-03-23 17:00:35 +00:00