mirror of
https://github.com/TauricResearch/TradingAgents.git
synced 2026-09-27 06:56:39 +03:00
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:
@@ -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,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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user