- Add missing import json at module level in bright_data.py (removed inline but never added to top)
- Rename reflect_portfolio_manager -> reflect_risk_manager in reflection.py to match trading_graph.py
- Use curr_date parameter in get_social_sentiment search query
- Remove unused company_name variable in social_media_analyst.py
- Move json import to module level instead of inline
- Log content fetch errors instead of swallowing silently
- Use split-based vendor check for robustness with comma-separated configs
Adds Bright Data as a new data vendor for news, sentiment, and insider
transaction data. Uses SERP API for Google search results and Web
Unlocker for full article content in clean markdown format.
New features:
- bright_data vendor for get_news, get_global_news, get_insider_transactions
- New get_social_sentiment tool that scrapes Reddit, Twitter/X, and forums
for actual retail investor discussions (Bright Data exclusive)
- Social media analyst agent gains get_social_sentiment when bright_data
is configured, giving it real social data for the first time
- Automatic fallback on rate limits, same as Alpha Vantage
Usage:
export BRIGHT_DATA_API_KEY=your_key
config["data_vendors"]["news_data"] = "bright_data"
No changes to agent prompts, graph structure, or debate logic.
Drop-in vendor, zero breaking changes.