mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-06-17 05:16:14 +03:00
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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user