fix(agents): give the fundamentals analyst the insider transactions tool

- the tool sat in the news tool node, which no analyst offered it from, so no run used insider data
- the full-graph test now requires it
This commit is contained in:
Yijia-Xiao
2026-09-24 04:31:04 +00:00
parent 2938e1c7e9
commit 15b8276b92
3 changed files with 6 additions and 4 deletions
@@ -5,6 +5,7 @@ from tradingagents.agents.utils.agent_utils import (
get_cashflow,
get_fundamentals,
get_income_statement,
get_insider_transactions,
get_instrument_context_from_state,
get_language_instruction,
)
@@ -20,12 +21,13 @@ def create_fundamentals_analyst(llm):
get_balance_sheet,
get_cashflow,
get_income_statement,
get_insider_transactions,
]
system_message = (
"You are a researcher tasked with analyzing fundamental information over the past week about a company. Please write a comprehensive report of the company's fundamental information such as financial documents, company profile, basic company financials, and company financial history to gain a full view of the company's fundamental information to inform traders. Make sure to include as much detail as possible. Provide specific, actionable insights with supporting evidence to help traders make informed decisions."
+ " Make sure to append a Markdown table at the end of the report to organize key points in the report, organized and easy to read."
+ " Use the available tools: `get_fundamentals` for comprehensive company analysis, `get_balance_sheet`, `get_cashflow`, and `get_income_statement` for specific financial statements."
+ " Use the available tools: `get_fundamentals` for comprehensive company analysis, `get_balance_sheet`, `get_cashflow`, and `get_income_statement` for specific financial statements, and `get_insider_transactions` for recent insider buying and selling."
+ get_language_instruction()
)
+1 -2
View File
@@ -242,10 +242,8 @@ class TradingAgentsGraph:
),
"news": ToolNode(
[
# News and insider information
get_news,
get_global_news,
get_insider_transactions,
get_macro_indicators,
get_prediction_markets,
]
@@ -257,6 +255,7 @@ class TradingAgentsGraph:
get_balance_sheet,
get_cashflow,
get_income_statement,
get_insider_transactions,
]
),
}