TradingAgents/tradingagents/agents/utils
tiffanychum ce241998c6 fix: remove stale ChatOpenAI imports, fix hardcoded results path, add missing pandas import
- Remove unused `from langchain_openai import ChatOpenAI` imports from
  graph/setup.py, graph/reflection.py, graph/signal_processing.py, and
  agents/utils/agent_states.py. The framework supports multiple LLM
  providers so these type hints were incorrect and misleading.

- Clean up agents/utils/agent_states.py: remove unused imports of
  Sequence, date, timedelta, datetime, ChatOpenAI, agents star-import,
  ToolNode, END, StateGraph, START (only Annotated, TypedDict, and
  MessagesState are actually used).

- Fix graph/trading_graph.py _log_state(): replace hardcoded
  "eval_results/" relative path with config["results_dir"] so logs land
  in the same configured directory as other run outputs, regardless of
  the working directory the user runs from.

- Fix dataflows/y_finance.py _get_stock_stats_bulk(): add missing
  `import pandas as pd` which caused a NameError on pd.isna() during
  bulk indicator calculation, silently falling back to the slower
  per-day loop.

Made-with: Cursor
2026-04-02 01:16:42 +08:00
..
agent_states.py fix: remove stale ChatOpenAI imports, fix hardcoded results path, add missing pandas import 2026-04-02 01:16:42 +08:00
agent_utils.py feat: multi-language output support for analyst reports and final decision (#472) 2026-03-29 19:19:01 +00:00
core_stock_tools.py minor fix 2025-09-26 23:25:33 +08:00
fundamental_data_tools.py minor fix 2025-09-26 23:25:33 +08:00
memory.py feat: add multi-provider LLM support with thinking configurations 2026-02-03 22:27:20 +00:00
news_data_tools.py fix: improve data vendor implementations and tool signatures 2026-02-03 22:27:20 +00:00
technical_indicators_tools.py fix: gracefully handle invalid indicator names in tool calls (#429) 2026-03-29 17:50:30 +00:00