refactor: align display label and docs with sentiment_analyst rename

The agent ingests news, StockTwits, and Reddit, but CLI labels, the
README description, and the legacy shim docstring still framed it as
social-media-only. Updates all user-visible surfaces so the name and
the implementation match.
This commit is contained in:
Yijia-Xiao
2026-05-11 06:25:22 +00:00
parent 9f7abfcbd5
commit 879e2bb5da
6 changed files with 16 additions and 14 deletions

View File

@@ -1,9 +1,9 @@
"""Backwards-compatibility shim for the renamed social_media_analyst module.
"""Backwards-compatibility shim for the renamed module.
The social media analyst has been renamed to ``sentiment_analyst`` because its
only data tool is ``get_news`` (Yahoo Finance), not a social media feed.
Import from ``tradingagents.agents.analysts.sentiment_analyst`` going forward.
The agent is now ``sentiment_analyst`` and aggregates Yahoo Finance news,
StockTwits cashtag streams, and Reddit posts into a single sentiment
report. Import from ``tradingagents.agents.analysts.sentiment_analyst``
going forward; this module will be removed in a future release.
See: https://github.com/TauricResearch/TradingAgents/issues/557
"""

View File

@@ -51,7 +51,7 @@ class AgentState(MessagesState):
# research step
market_report: Annotated[str, "Report from the Market Analyst"]
sentiment_report: Annotated[str, "Report from the Social Media Analyst"]
sentiment_report: Annotated[str, "Report from the Sentiment Analyst"]
news_report: Annotated[
str, "Report from the News Researcher of current world affairs"
]