chore: remove code nothing reads

- router.VENDOR_LIST, and the state's sender field with the Trader's partial that only set it
This commit is contained in:
Yijia-Xiao
2026-09-24 19:38:41 +00:00
parent 3f6ad5dc12
commit 1d20780095
3 changed files with 2 additions and 15 deletions
-2
View File
@@ -50,8 +50,6 @@ class AgentState(MessagesState):
instrument_context: Annotated[str, "Deterministic ticker identity resolved at run start"]
trade_date: Annotated[str, "The analysis date; data is served as of it"]
sender: Annotated[str, "Agent that sent this message"]
# research step
market_report: Annotated[str, "Report from the Market Analyst"]
sentiment_report: Annotated[str, "Report from the Sentiment Analyst"]
+2 -5
View File
@@ -2,8 +2,6 @@
from __future__ import annotations
import functools
from langchain_core.messages import AIMessage
from tradingagents.agents.context import (
@@ -22,7 +20,7 @@ from tradingagents.agents.structured import (
def create_trader(llm):
structured_llm = bind_structured(llm, TraderProposal, "Trader")
def trader_node(state, name):
def trader_node(state):
company_name = state["company_of_interest"]
instrument_context = get_instrument_context_from_state(state)
investment_plan = state["investment_plan"]
@@ -95,7 +93,6 @@ def create_trader(llm):
return {
"messages": [AIMessage(content=trader_plan)],
"trader_investment_plan": trader_plan,
"sender": name,
}
return functools.partial(trader_node, name="Trader")
return trader_node
-8
View File
@@ -86,14 +86,6 @@ TOOLS_CATEGORIES = {
}
}
VENDOR_LIST = [
"yfinance",
"sec_edgar",
"fred",
"polymarket",
"alpha_vantage",
]
# Optional enrichment categories. These add macro/event context to the news
# analyst but are not core to a decision, so a vendor failure here degrades to a
# sentinel instead of aborting the run (a bad LLM-supplied indicator, a missing