fix(graph): register get_verified_market_snapshot in the market ToolNode

The market analyst is bound to call get_verified_market_snapshot and its prompt
requires it as the source of truth, but the tool was missing from the market
ToolNode executor — so the call failed and the model reported it "unavailable"
and skipped verification. Register it (with a regression guard) so the snapshot
actually runs and grounds the report.
This commit is contained in:
Yijia-Xiao
2026-06-14 02:46:29 +00:00
parent 0c1231a405
commit 4e7821d574
2 changed files with 28 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ from tradingagents.agents.utils.agent_utils import (
resolve_instrument_identity,
get_stock_data,
get_indicators,
get_verified_market_snapshot,
get_fundamentals,
get_balance_sheet,
get_cashflow,
@@ -173,6 +174,10 @@ class TradingAgentsGraph:
get_stock_data,
# Technical indicators
get_indicators,
# Deterministic verification snapshot (bound to the analyst
# LLM and required by its prompt; must be executable here or
# the call fails and the model reports it "unavailable").
get_verified_market_snapshot,
]
),
"social": ToolNode(