diff --git a/python/README.md b/python/README.md
index fa0e82629..6aa5b2c49 100644
--- a/python/README.md
+++ b/python/README.md
@@ -38,19 +38,6 @@ uv sync --group dev
uv sync
```
-## Third Party Agents Integration
-
-⚠️ **Caution**: Isolate third‑party libraries in separate virtual environments (uv, venv, virtualenv, or conda) to prevent dependency conflicts between components.
-
-```bash
-# ai-hedge-fund
-cd third_party/ai-hedge-fund
-echo "uv: $(which uv)"
-echo "python: $(which python)"
-
-uv venv --python 3.12 && uv sync && uv pip list
-```
-
## Requirements
- Python >= 3.12
diff --git a/python/configs/agent_cards/aswath_damodaran_agent.json b/python/configs/agent_cards/aswath_damodaran_agent.json
deleted file mode 100644
index cc9fa515b..000000000
--- a/python/configs/agent_cards/aswath_damodaran_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "AswathDamodaranAgent",
- "display_name": "Aswath Damodaran Agent",
- "url": "http://localhost:10010/",
- "description": "Valuation-focused analysis using robust discounted cash flow and intrinsic value methods. ",
- "skills": [
- {
- "id": "aswath_damodaran_agent",
- "name": "Aswath Damodaran",
- "description": "Valuation-focused analysis using robust discounted cash flow and intrinsic value methods.",
- "examples": [
- "Value Tesla using a DCF with scenario analysis",
- "What's the intrinsic value range for Nvidia based on conservative growth assumptions?"
- ],
- "tags": [
- "valuation",
- "DCF",
- "intrinsic value"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "valuation",
- "DCF",
- "intrinsic-value"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/ben_graham_agent.json b/python/configs/agent_cards/ben_graham_agent.json
deleted file mode 100644
index 8f9be87f1..000000000
--- a/python/configs/agent_cards/ben_graham_agent.json
+++ /dev/null
@@ -1,31 +0,0 @@
-{
- "name": "BenGrahamAgent",
- "display_name": "Ben Graham Agent",
- "url": "http://localhost:10011/",
- "description": "Margin-of-safety and value-investing oriented screens and stock selection. ",
- "skills": [
- {
- "id": "ben_graham_agent",
- "name": "Ben Graham",
- "description": "Margin-of-safety and value-investing oriented screens and stock selection.",
- "examples": [
- "Find stocks trading below intrinsic value with strong balance sheets",
- "Screen for deep value opportunities in the small-cap universe"
- ],
- "tags": [
- "value investing",
- "margin of safety"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "value-investing",
- "margin-of-safety",
- "screening"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/bill_ackman_agent.json b/python/configs/agent_cards/bill_ackman_agent.json
deleted file mode 100644
index 63589e108..000000000
--- a/python/configs/agent_cards/bill_ackman_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "BillAckmanAgent",
- "display_name": "Bill Ackman Agent",
- "url": "http://localhost:10012/",
- "description": "Event-driven and activist-investor style analysis focused on catalysts and corporate structure improvements.",
- "skills": [
- {
- "id": "bill_ackman_agent",
- "name": "Bill Ackman",
- "description": "Event-driven and activist-investor style analysis focused on catalysts and corporate structure improvements.",
- "examples": [
- "Identify potential activist targets with undervalued assets",
- "What catalysts could unlock value at Company X?"
- ],
- "tags": [
- "activist",
- "event-driven",
- "catalyst"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "activist",
- "event-driven",
- "catalyst"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/cathie_wood_agent.json b/python/configs/agent_cards/cathie_wood_agent.json
deleted file mode 100644
index 9828cc686..000000000
--- a/python/configs/agent_cards/cathie_wood_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "CathieWoodAgent",
- "display_name": "Cathie Wood Agent",
- "url": "http://localhost:10013/",
- "description": "High-conviction growth and disruptive-innovation oriented analysis with long-term thematic views.",
- "skills": [
- {
- "id": "cathie_wood_agent",
- "name": "Cathie Wood",
- "description": "High-conviction growth and disruptive-innovation oriented analysis with long-term thematic views.",
- "examples": [
- "Assess the long-term growth thesis for ARK-style thematic investments",
- "How might disruptive technology revenues evolve over the next 5 years?"
- ],
- "tags": [
- "growth",
- "disruption",
- "thematic"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "growth",
- "disruption",
- "thematic"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/charlie_munger_agent.json b/python/configs/agent_cards/charlie_munger_agent.json
deleted file mode 100644
index 42073e01c..000000000
--- a/python/configs/agent_cards/charlie_munger_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "CharlieMungerAgent",
- "display_name": "Charlie Munger Agent",
- "url": "http://localhost:10014/",
- "description": "Broad multidisciplinary perspective, focus on high-quality businesses with durable competitive advantages. ",
- "skills": [
- {
- "id": "charlie_munger_agent",
- "name": "Charlie Munger",
- "description": "Broad multidisciplinary perspective, focus on high-quality businesses with durable competitive advantages.",
- "examples": [
- "Identify companies with long-term competitive moats",
- "Evaluate management quality and capital allocation decisions"
- ],
- "tags": [
- "quality investing",
- "moat",
- "capital allocation"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "quality-investing",
- "moat",
- "capital-allocation"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/fundamentals_analyst_agent.json b/python/configs/agent_cards/fundamentals_analyst_agent.json
deleted file mode 100644
index 983a818a6..000000000
--- a/python/configs/agent_cards/fundamentals_analyst_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "FundamentalsAnalystAgent",
- "display_name": "Fundamentals Analyst",
- "url": "http://localhost:10023/",
- "description": "Financial-statement-driven analysis covering profitability, cash flows, and balance sheet strength.",
- "skills": [
- {
- "id": "fundamentals_analyst_agent",
- "name": "Fundamentals Analyst",
- "description": "Financial-statement-driven analysis covering profitability, cash flows, and balance sheet strength.",
- "examples": [
- "Analyze revenue and margin trends for Microsoft",
- "Assess liquidity and leverage for Boeing"
- ],
- "tags": [
- "fundamentals",
- "financial statements",
- "metrics"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "fundamentals",
- "financial-statements",
- "metrics"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/michael_burry_agent.json b/python/configs/agent_cards/michael_burry_agent.json
deleted file mode 100644
index 38e6f3614..000000000
--- a/python/configs/agent_cards/michael_burry_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "MichaelBurryAgent",
- "display_name": "Michael Burry Agent",
- "url": "http://localhost:10015/",
- "description": "Contrarian, deep-research driven value and special-situation analysis.",
- "skills": [
- {
- "id": "michael_burry_agent",
- "name": "Michael Burry",
- "description": "Contrarian, deep-research driven value and special-situation analysis.",
- "examples": [
- "Find contrarian opportunities overlooked by the market",
- "Analyze distressed or deeply undervalued securities"
- ],
- "tags": [
- "contrarian",
- "deep value",
- "special situations"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "contrarian",
- "deep-value",
- "special-situations"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/mohnish_pabrai_agent.json b/python/configs/agent_cards/mohnish_pabrai_agent.json
deleted file mode 100644
index a9d9b2301..000000000
--- a/python/configs/agent_cards/mohnish_pabrai_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "MohnishPabraiAgent",
- "display_name": "Mohnish Pabrai Agent",
- "url": "http://localhost:10016/",
- "description": "Concentrated, low-risk value investing with a focus on high-upside asymmetric bets.",
- "skills": [
- {
- "id": "mohnish_pabrai_agent",
- "name": "Mohnish Pabrai",
- "description": "Concentrated, low-risk value investing with a focus on high-upside asymmetric bets.",
- "examples": [
- "Build a concentrated portfolio of high-conviction value ideas",
- "Where are asymmetric risk-reward opportunities today?"
- ],
- "tags": [
- "concentrated",
- "value",
- "asymmetric"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "concentrated",
- "value",
- "asymmetric"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/peter_lynch_agent.json b/python/configs/agent_cards/peter_lynch_agent.json
deleted file mode 100644
index 809dd83a1..000000000
--- a/python/configs/agent_cards/peter_lynch_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "PeterLynchAgent",
- "display_name": "Peter Lynch Agent",
- "url": "http://localhost:10017/",
- "description": "Bottom-up, growth-at-a-reasonable-price (GARP) style stock picking and idea generation. ",
- "skills": [
- {
- "id": "peter_lynch_agent",
- "name": "Peter Lynch",
- "description": "Bottom-up, growth-at-a-reasonable-price (GARP) style stock picking and idea generation.",
- "examples": [
- "Spot consumer-facing growth stories with reasonable valuations",
- "Which small-cap growth companies show durable revenue expansion?"
- ],
- "tags": [
- "GARP",
- "bottom-up",
- "growth"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "GARP",
- "bottom-up",
- "growth"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/phil_fisher_agent.json b/python/configs/agent_cards/phil_fisher_agent.json
deleted file mode 100644
index a6260985a..000000000
--- a/python/configs/agent_cards/phil_fisher_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "PhilFisherAgent",
- "display_name": "Phil Fisher Agent",
- "url": "http://localhost:10018/",
- "description": "Qualitative growth investing focused on management, R&D, and long-term industry positioning.",
- "skills": [
- {
- "id": "phil_fisher_agent",
- "name": "Phil Fisher",
- "description": "Qualitative growth investing focused on management, R&D, and long-term industry positioning.",
- "examples": [
- "Assess a company's management and research capabilities",
- "What are the long-term secular growth drivers for Company Y?"
- ],
- "tags": [
- "qualitative",
- "management",
- "R&D"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "qualitative",
- "management",
- "R&D"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/rakesh_jhunjhunwala_agent.json b/python/configs/agent_cards/rakesh_jhunjhunwala_agent.json
deleted file mode 100644
index 760794dde..000000000
--- a/python/configs/agent_cards/rakesh_jhunjhunwala_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "RakeshJhunjhunwalaAgent",
- "display_name": "Rakesh Jhunjhunwala Agent",
- "url": "http://localhost:10019/",
- "description": "Concentrated, conviction-driven investing with an emphasis on high-growth emerging opportunities.",
- "skills": [
- {
- "id": "rakesh_jhunjhunwala_agent",
- "name": "Rakesh Jhunjhunwala",
- "description": "Concentrated, conviction-driven investing with an emphasis on high-growth emerging opportunities.",
- "examples": [
- "Identify high-growth opportunities in emerging markets",
- "Which mid-cap names have the potential to scale rapidly?"
- ],
- "tags": [
- "emerging markets",
- "conviction",
- "growth"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "emerging-markets",
- "conviction",
- "growth"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/sentiment_analyst_agent.json b/python/configs/agent_cards/sentiment_analyst_agent.json
deleted file mode 100644
index da753146a..000000000
--- a/python/configs/agent_cards/sentiment_analyst_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "SentimentAnalystAgent",
- "display_name": "Sentiment Analyst",
- "url": "http://localhost:10024/",
- "description": "Market sentiment and positioning analysis using newsflow, social signals, and positioning data.",
- "skills": [
- {
- "id": "sentiment_analyst_agent",
- "name": "Sentiment Analyst",
- "description": "Market sentiment and positioning analysis using newsflow, social signals, and positioning data.",
- "examples": [
- "Gauge retail sentiment around meme stocks",
- "Summarize recent news sentiment for Amazon"
- ],
- "tags": [
- "sentiment",
- "news",
- "social"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "sentiment",
- "news",
- "social"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/stanley_druckenmiller_agent.json b/python/configs/agent_cards/stanley_druckenmiller_agent.json
deleted file mode 100644
index ada0ceaed..000000000
--- a/python/configs/agent_cards/stanley_druckenmiller_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "StanleyDruckenmillerAgent",
- "display_name": "Stanley Druckenmiller Agent",
- "url": "http://localhost:10020/",
- "description": "Macro-driven allocation and tactical trading insights combining top-down macro views with security selection.",
- "skills": [
- {
- "id": "stanley_druckenmiller_agent",
- "name": "Stanley Druckenmiller",
- "description": "Macro-driven allocation and tactical trading insights combining top-down macro views with security selection.",
- "examples": [
- "Develop a macro-informed allocation between equities and bonds",
- "What macro catalysts are likely to affect tech stocks this quarter?"
- ],
- "tags": [
- "macro",
- "allocation",
- "tactical"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "macro",
- "allocation",
- "tactical"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/technical_analyst_agent.json b/python/configs/agent_cards/technical_analyst_agent.json
deleted file mode 100644
index cfe33fd81..000000000
--- a/python/configs/agent_cards/technical_analyst_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "TechnicalAnalystAgent",
- "display_name": "Technical Analyst",
- "url": "http://localhost:10022/",
- "description": "Chart-based technical analysis for entries, exits, trend identification and momentum signals.",
- "skills": [
- {
- "id": "technical_analyst_agent",
- "name": "Technical Analyst",
- "description": "Chart-based technical analysis for entries, exits, trend identification and momentum signals.",
- "examples": [
- "Provide support/resistance levels for AAPL",
- "Identify bullish or bearish chart patterns for TSLA"
- ],
- "tags": [
- "technical",
- "charts",
- "momentum"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "technical",
- "charts",
- "momentum"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/trading_agents.json b/python/configs/agent_cards/trading_agents.json
deleted file mode 100644
index 20541542f..000000000
--- a/python/configs/agent_cards/trading_agents.json
+++ /dev/null
@@ -1,66 +0,0 @@
-{
- "name": "TradingAgents",
- "display_name": "Trading Agents",
- "url": "http://localhost:10002",
- "description": "TradingAgents - Multi-agent trading analysis system with market, sentiment, news and fundamentals analysis",
- "capabilities": {
- "streaming": true,
- "push_notifications": false
- },
- "skills": [{
- "id": "trading_agents",
- "name": "Trading Agents",
- "description": "Trading Agents - Multi-agent trading analysis system with market, sentiment, news and fundamentals analysis",
- "examples": [
- "Analyze APPL using all analysts",
- "Analyze NVDA using market and fundamentals analysts",
- "Analyze TSLA using all analysts, date 2024-01-15, enable debug mode"
- ],
- "tags": [
- "analysis",
- "multi-agent",
- "stocks",
- "US market"
- ]
- }],
- "enabled": false,
- "provider": {
- "organization": "Tauric",
- "url": "https://arxiv.org/abs/2412.20138"
- },
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "trading",
- "analysis",
- "multi-agent",
- "stocks",
- "finance"
- ],
- "supported_tickers": [
- "AAPL",
- "GOOGL",
- "MSFT",
- "NVDA",
- "TSLA",
- "AMZN",
- "META",
- "NFLX",
- "SPY"
- ],
- "supported_analysts": [
- "market",
- "social",
- "news",
- "fundamentals"
- ],
- "supported_llm_providers": [
- "openai",
- "anthropic",
- "google",
- "ollama",
- "openrouter"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/valuation_analyst_agent.json b/python/configs/agent_cards/valuation_analyst_agent.json
deleted file mode 100644
index 7be831886..000000000
--- a/python/configs/agent_cards/valuation_analyst_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "ValuationAnalystAgent",
- "display_name": "Valuation Analyst",
- "url": "http://localhost:10025/",
- "description": "Multi-method valuation using DCF, comparables, and precedent transactions to derive price targets.",
- "skills": [
- {
- "id": "valuation_analyst_agent",
- "name": "Valuation Analyst",
- "description": "Multi-method valuation using DCF, comparables, and precedent transactions to derive price targets.",
- "examples": [
- "Produce a 12-month price target using DCF and comps",
- "Compare valuation multiples across peers"
- ],
- "tags": [
- "valuation",
- "comparables",
- "DCF"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "valuation",
- "comparables",
- "DCF"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/configs/agent_cards/warren_buffett_agent.json b/python/configs/agent_cards/warren_buffett_agent.json
deleted file mode 100644
index c8a0ff7be..000000000
--- a/python/configs/agent_cards/warren_buffett_agent.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "name": "WarrenBuffettAgent",
- "display_name": "Warren Buffett Agent",
- "url": "http://localhost:10021/",
- "description": "Long-term value investing with emphasis on durable businesses, simple economics, and shareholder-friendly management.",
- "skills": [
- {
- "id": "warren_buffett_agent",
- "name": "Warren Buffett",
- "description": "Long-term value investing with emphasis on durable businesses, simple economics, and shareholder-friendly management.",
- "examples": [
- "Evaluate a company's long-term competitive advantage and free cash flow generation",
- "Which businesses should be held for decades?"
- ],
- "tags": [
- "long-term",
- "value",
- "moat"
- ]
- }
- ],
- "enabled": false,
- "metadata": {
- "version": "1.0.0",
- "author": "ValueCell Team",
- "tags": [
- "long-term",
- "value",
- "moat"
- ]
- }
-}
\ No newline at end of file
diff --git a/python/pyproject.toml b/python/pyproject.toml
index 0fc093590..bdd3137d1 100644
--- a/python/pyproject.toml
+++ b/python/pyproject.toml
@@ -71,7 +71,6 @@ exclude = [
"dist",
"node_modules",
"site-packages",
- "third_party",
]
[tool.ruff.format]
@@ -85,8 +84,6 @@ include = [
"valuecell",
]
exclude = [
- "third_party/**",
- "**/third_party/**",
"tests/**",
"**/tests/**",
"examples/**",
@@ -102,7 +99,6 @@ norecursedirs = [
"build",
"dist",
"logs",
- "third_party",
"examples",
"docs",
]
@@ -110,8 +106,6 @@ norecursedirs = [
[tool.isort]
profile = "black"
skip_glob = [
- "third_party/**",
- "**/third_party/**",
"tests/**",
"**/tests/**",
"docs/**",
diff --git a/python/scripts/launch.py b/python/scripts/launch.py
index 054a61805..80fc3d7d5 100644
--- a/python/scripts/launch.py
+++ b/python/scripts/launch.py
@@ -68,13 +68,15 @@
# Mapping from agent name to launch command
MAP_NAME_COMMAND: Dict[str, str] = {}
-for name, analyst in MAP_NAME_ANALYST.items():
- MAP_NAME_COMMAND[name] = (
- f"cd {PYTHON_DIR_STR}/third_party/ai-hedge-fund && uv run --env-file {ENV_PATH_STR} -m adapter --analyst {analyst}"
- )
-MAP_NAME_COMMAND[TRADING_AGENTS_NAME] = (
- f"cd {PYTHON_DIR_STR}/third_party/TradingAgents && uv run --env-file {ENV_PATH_STR} -m adapter"
-)
+# Remove external agent entries
+# for name, analyst in MAP_NAME_ANALYST.items():
+# MAP_NAME_COMMAND[name] = (
+# f"uv run --env-file {ENV_PATH_STR} -m adapter --analyst {analyst}"
+# )
+# MAP_NAME_COMMAND[TRADING_AGENTS_NAME] = (
+# f"uv run --env-file {ENV_PATH_STR} -m adapter"
+# )
+# Keep only first-party agents
MAP_NAME_COMMAND[RESEARCH_AGENT_NAME] = (
f"uv run --env-file {ENV_PATH_STR} -m valuecell.agents.research_agent"
)
diff --git a/python/scripts/prepare_envs.ps1 b/python/scripts/prepare_envs.ps1
index ad6b3d939..cf17c7936 100644
--- a/python/scripts/prepare_envs.ps1
+++ b/python/scripts/prepare_envs.ps1
@@ -1,41 +1,25 @@
# PowerShell script to prepare Python environments
-# Equivalent to prepare_envs.sh
$ErrorActionPreference = "Stop"
-# Color output functions
-function Write-Highlight($message) {
- Write-Host $message -ForegroundColor Blue
-}
-
-function Write-Success($message) {
- Write-Host $message -ForegroundColor Green
-}
-
-function Write-Warn($message) {
- Write-Host $message -ForegroundColor Yellow
-}
-
-function Write-Err($message) {
- Write-Host $message -ForegroundColor Red
-}
-
-function Highlight-Command($command) {
- Write-Highlight "Running: $command"
-}
+function Write-Highlight($message) { Write-Host $message -ForegroundColor Blue }
+function Write-Success($message) { Write-Host $message -ForegroundColor Green }
+function Write-Warn($message) { Write-Host $message -ForegroundColor Yellow }
+function Write-Err($message) { Write-Host $message -ForegroundColor Red }
+function Highlight-Command($command) { Write-Highlight "Running: $command" }
# Check current directory and switch to python if needed
$currentPath = Get-Location
if ((Test-Path "python") -and (Test-Path "python\pyproject.toml") -and (Test-Path ".gitignore")) {
Write-Warn "Detected project root. Switching to python directory..."
Set-Location "python"
-} elseif (-not (Test-Path "pyproject.toml") -or -not (Test-Path "third_party")) {
+} elseif (-not (Test-Path "pyproject.toml")) {
Write-Err "Error: This script must be run from the project python directory or project root. You are in $currentPath"
exit 1
}
# Final check if in python directory
-if (-not (Test-Path "pyproject.toml") -or -not (Test-Path "third_party")) {
+if (-not (Test-Path "pyproject.toml")) {
Write-Err "Error: Failed to switch to python directory. You are in $(Get-Location)"
exit 1
}
@@ -62,52 +46,9 @@ if (-not (Test-Path ".venv")) {
}
Highlight-Command "uv sync --group dev"
uv sync --group dev
-# https://stackoverflow.com/questions/74267313/how-to-use-tzdata-file-with-pyarrow-compute-assume-timezone/74292266
-uv run -s "python -c 'import pyarrow.util; pyarrow.util.download_tzdata_on_windows()'"
uvx playwright install --with-deps chromium
Write-Success "Main environment setup complete."
-Write-Highlight "=========================================="
-Write-Highlight "Setting up third-party environments..."
-Write-Highlight "=========================================="
-
-# Setup ai-hedge-fund environment
-Write-Warn "Setting up ai-hedge-fund environment..."
-Push-Location ".\third_party\ai-hedge-fund"
-try {
- if (-not (Test-Path ".venv")) {
- Highlight-Command "uv venv --python 3.12"
- uv venv --python 3.12
- } else {
- Write-Warn ".venv already exists, skipping venv creation."
- }
- Highlight-Command "uv sync"
- uv sync
- Write-Success "ai-hedge-fund environment setup complete."
-} finally {
- Pop-Location
-}
-
-Write-Warn "------------------------------------------"
-Write-Warn "Setting up TradingAgents environment..."
-Write-Warn "------------------------------------------"
-
-# Setup TradingAgents environment
-Push-Location ".\third_party\TradingAgents"
-try {
- if (-not (Test-Path ".venv")) {
- Highlight-Command "uv venv --python 3.12"
- uv venv --python 3.12
- } else {
- Write-Warn ".venv already exists, skipping venv creation."
- }
- Highlight-Command "uv sync"
- uv sync
- Write-Success "TradingAgents environment setup complete."
-} finally {
- Pop-Location
-}
-
Write-Success "=========================================="
Write-Success "All environments are set up."
Write-Success "=========================================="
diff --git a/python/scripts/prepare_envs.sh b/python/scripts/prepare_envs.sh
index b15f9604a..826412fad 100644
--- a/python/scripts/prepare_envs.sh
+++ b/python/scripts/prepare_envs.sh
@@ -16,13 +16,13 @@ highlight_command() {
if [ -d "python" ] && [ -f "python/pyproject.toml" ] && [ -f ".gitignore" ]; then
echo -e "${YELLOW}Detected project root. Switching to python directory...${NC}"
cd python
-elif [ ! -f "pyproject.toml" ] || [ ! -d "third_party" ]; then
+elif [ ! -f "pyproject.toml" ]; then
echo -e "${RED}Error: This script must be run from the project python directory or project root. You are in $(pwd)${NC}"
exit 1
fi
# Final check if in python directory
-if [ ! -f "pyproject.toml" ] || [ ! -d "third_party" ]; then
+if [ ! -f "pyproject.toml" ]; then
echo -e "${RED}Error: Failed to switch to python directory. You are in $(pwd)${NC}"
exit 1
fi
@@ -52,37 +52,6 @@ uv sync --group dev
uvx playwright install --with-deps chromium
echo -e "${GREEN}Main environment setup complete.${NC}"
-echo -e "${BLUE}==========================================${NC}"
-echo -e "${BLUE}Setting up third-party environments...${NC}"
-echo -e "${BLUE}==========================================${NC}"
-echo -e "${YELLOW}Setting up ai-hedge-fund environment...${NC}"
-pushd ./third_party/ai-hedge-fund
-if [ ! -d ".venv" ]; then
- highlight_command "uv venv --python 3.12"
- uv venv --python 3.12
-else
- echo -e "${YELLOW}.venv already exists, skipping venv creation.${NC}"
-fi
-highlight_command "uv sync"
-uv sync
-popd
-echo -e "${GREEN}ai-hedge-fund environment setup complete.${NC}"
-
-echo -e "${YELLOW}------------------------------------------${NC}"
-echo -e "${YELLOW}Setting up TradingAgents environment...${NC}"
-echo -e "${YELLOW}------------------------------------------${NC}"
-pushd ./third_party/TradingAgents
-if [ ! -d ".venv" ]; then
- highlight_command "uv venv --python 3.12"
- uv venv --python 3.12
-else
- echo -e "${YELLOW}.venv already exists, skipping venv creation.${NC}"
-fi
-highlight_command "uv sync"
-uv sync
-popd
-echo -e "${GREEN}TradingAgents environment setup complete.${NC}"
-
echo -e "${GREEN}==========================================${NC}"
echo -e "${GREEN}All environments are set up.${NC}"
echo -e "${GREEN}==========================================${NC}"
\ No newline at end of file
diff --git a/python/third_party/README.md b/python/third_party/README.md
deleted file mode 100644
index a67442827..000000000
--- a/python/third_party/README.md
+++ /dev/null
@@ -1,14 +0,0 @@
-# Deploy Third Party Agents
-
-## ai-hedge-fund
-
-```bash
-# ... install
-cd ./ai-hedge-fund
-echo "uv: $(which uv)"
-echo "python: $(which python)"
-
-uv run -m adapter --env-file ${path_to_dotenv}
-# or simply
-bash launch_adapter.sh
-```
\ No newline at end of file
diff --git a/python/third_party/TradingAgents/.env.example b/python/third_party/TradingAgents/.env.example
deleted file mode 100644
index 2e9481546..000000000
--- a/python/third_party/TradingAgents/.env.example
+++ /dev/null
@@ -1,167 +0,0 @@
-# TradingAgents Environment Configuration
-# Copy this file to .env and fill in your actual values
-
-# =============================================================================
-# API KEYS (Required)
-# =============================================================================
-
-# OpenAI API Key - Required for LLM models and online data search
-# Get your key from: https://platform.openai.com/api-keys
-OPENAI_API_KEY=your_openai_api_key_here
-
-# Finnhub API Key - Required for financial news and insider trading data
-# Get your free key from: https://finnhub.io/register
-FINNHUB_API_KEY=your_finnhub_api_key_here
-
-
-# Embeddings API Key - IMPORTANT for Memory Functionality
-# This is needed when using non-OpenAI providers (OpenRouter, Anthropic, Google)
-# because they don't support OpenAI's embeddings API
-# If not set, the system will try to use OPENAI_API_KEY for embeddings
-# Get your key from: https://platform.openai.com/api-keys
-EMBEDDER_API_KEY=your_openai_embeddings_key_here
-# Default embedding URL is OpenAI
-EMBEDDER_BASE_URL=your_embedding_model_backend_url_here
-# Default embedding model
-EMBEDDER_MODEL_ID=text-embedding-3-small
-
-
-# =============================================================================
-# OPTIONAL API KEYS (Only needed if using specific providers)
-# ==============================================================================
-
-# Anthropic API Key - Only needed if using Anthropic models
-# Get your key from: https://console.anthropic.com/
-ANTHROPIC_API_KEY=your_anthropic_api_key_here
-
-# Google API Key - Only needed if using Google/Gemini models
-# Get your key from: https://aistudio.google.com/app/apikey
-GOOGLE_API_KEY=your_google_api_key_here
-
-# =============================================================================
-# DIRECTORY CONFIGURATION
-# =============================================================================
-
-# Results output directory
-TRADINGAGENTS_RESULTS_DIR=./results
-
-# Data directory - where your financial data files are stored
-# This should point to your local data directory containing:
-# - market_data/price_data/
-# - fundamental_data/simfin_data_all/
-# - reddit_data/
-# - finnhub_data/
-TRADINGAGENTS_DATA_DIR=./data
-
-# =============================================================================
-# LLM PROVIDER CONFIGURATION
-# =============================================================================
-
-# LLM Provider: openai, anthropic, google, ollama, openrouter
-TRADINGAGENTS_LLM_PROVIDER=openai
-
-# Backend URL for LLM API
-TRADINGAGENTS_BACKEND_URL=https://api.openai.com/v1
-
-# Deep thinking model (for complex reasoning tasks)
-TRADINGAGENTS_DEEP_THINK_LLM=o4-mini
-
-# Quick thinking model (for fast analysis tasks)
-TRADINGAGENTS_QUICK_THINK_LLM=gpt-4o-mini
-
-# =============================================================================
-# ANALYSIS CONFIGURATION
-# =============================================================================
-
-# Maximum debate rounds between bull and bear researchers (1-5)
-TRADINGAGENTS_MAX_DEBATE_ROUNDS=1
-
-# Maximum risk discussion rounds between risk analysts (1-5)
-TRADINGAGENTS_MAX_RISK_DISCUSS_ROUNDS=1
-
-# Maximum recursion limit for agent interactions
-TRADINGAGENTS_MAX_RECUR_LIMIT=100
-
-# Use online tools for real-time data (true/false)
-TRADINGAGENTS_ONLINE_TOOLS=true
-
-# =============================================================================
-# ALTERNATIVE LLM PROVIDER CONFIGURATIONS
-# =============================================================================
-
-# For Anthropic
-# TRADINGAGENTS_LLM_PROVIDER=anthropic
-# TRADINGAGENTS_BACKEND_URL=https://api.anthropic.com/
-# TRADINGAGENTS_DEEP_THINK_LLM=claude-sonnet-4-0
-# TRADINGAGENTS_QUICK_THINK_LLM=claude-3-5-haiku-latest
-
-# For Google/Gemini
-# TRADINGAGENTS_LLM_PROVIDER=google
-# TRADINGAGENTS_BACKEND_URL=https://generativelanguage.googleapis.com/v1
-# TRADINGAGENTS_DEEP_THINK_LLM=gemini-2.0-flash
-# TRADINGAGENTS_QUICK_THINK_LLM=gemini-2.0-flash-lite
-
-# For Ollama (local) - Supports both chat and embeddings locally
-# TRADINGAGENTS_LLM_PROVIDER=ollama
-# TRADINGAGENTS_BACKEND_URL=http://localhost:11434/v1
-# TRADINGAGENTS_DEEP_THINK_LLM=llama3.1
-# TRADINGAGENTS_QUICK_THINK_LLM=llama3.2
-# Note: Make sure to pull the embedding model: ollama pull nomic-embed-text
-
-# For OpenRouter - IMPORTANT: Requires separate embeddings API key
-# TRADINGAGENTS_LLM_PROVIDER=openrouter
-# TRADINGAGENTS_BACKEND_URL=https://openrouter.ai/api/v1
-# TRADINGAGENTS_DEEP_THINK_LLM=deepseek/deepseek-chat-v3-0324:free
-# TRADINGAGENTS_QUICK_THINK_LLM=meta-llama/llama-3.3-8b-instruct:free
-#
-# IMPORTANT NOTE FOR OPENROUTER USERS:
-# OpenRouter does not support OpenAI's embeddings API, which is required for
-# the memory functionality in TradingAgents. You MUST set both:
-# OPENAI_API_KEY=sk-or-v1-your-openrouter-key-here (for chat models)
-# EMBEDDER_API_KEY=sk-your-real-openai-key-here (for embeddings)
-
-# For Azure OpenAI
-# TRADINGAGENTS_LLM_PROVIDER=azure
-# TRADINGAGENTS_BACKEND_URL=https://your-endpoint.openai.azure.com/
-# TRADINGAGENTS_DEEP_THINK_LLM=gpt-4o-mini
-# TRADINGAGENTS_QUICK_THINK_LLM=gpt-4o-mini
-# AZURE_OPENAI_API_VERSION=2025-04-01-preview
-
-# =============================================================================
-# EMBEDDINGS API TROUBLESHOOTING
-# =============================================================================
-
-# Problem: Getting "AttributeError: 'str' object has no attribute 'data'" error?
-# This happens when using providers that don't support embeddings API.
-
-# Solution 1 - Use dedicated OpenAI key for embeddings (RECOMMENDED):
-# OPENAI_API_KEY=sk-or-v1-your-openrouter-key-here
-# EMBEDDER_API_KEY=sk-your-real-openai-key-here
-
-# Solution 2 - Switch to Ollama for fully local processing:
-# TRADINGAGENTS_LLM_PROVIDER=ollama
-# TRADINGAGENTS_BACKEND_URL=http://localhost:11434/v1
-# Then run: ollama pull llama3.1 && ollama pull nomic-embed-text
-
-# Solution 3 - Accept limited memory functionality:
-# If you don't set EMBEDDER_API_KEY, the system will use dummy
-# embeddings and continue running, but memory features will be limited.
-
-# Affected providers that need separate embeddings key:
-# - OpenRouter (openrouter.ai)
-# - Anthropic (api.anthropic.com)
-# - Google/Gemini (generativelanguage.googleapis.com)
-
-# Providers with built-in embeddings support:
-# - OpenAI (api.openai.com) - uses same key for chat and embeddings
-# - Ollama (localhost:11434) - local embeddings with nomic-embed-text
-
-# =============================================================================
-# USAGE INSTRUCTIONS
-# =============================================================================
-# 1. Copy this file to .env: cp .env.example .env
-# 2. Fill in your actual API keys and configuration values
-# 3. Make sure .env is in your .gitignore to keep your keys private
-# 4. For OpenRouter users: Set both OPENAI_API_KEY and EMBEDDER_API_KEY
-# 5. For Ollama users: Run 'ollama pull nomic-embed-text' for embeddings support
-# 6. Run the application: python main.py or python -m cli.main
diff --git a/python/third_party/TradingAgents/.gitignore b/python/third_party/TradingAgents/.gitignore
deleted file mode 100644
index 5ac4ebdfd..000000000
--- a/python/third_party/TradingAgents/.gitignore
+++ /dev/null
@@ -1,88 +0,0 @@
-# Environment variables
-.env
-.env.backup
-.env.local
-.env.*.local
-
-# Python
-__pycache__/
-*.py[cod]
-*.class
-*.so
-.Python
-build/
-develop-eggs/
-dist/
-downloads/
-eggs/
-.eggs/
-lib/
-lib64/
-parts/
-sdist/
-var/
-wheels/
-*.egg-info/
-.installed.cfg
-*.egg
-MANIFEST
-
-# PyInstaller
-*.manifest
-*.spec
-
-# Unit test / coverage reports
-htmlcov/
-.tox/
-.coverage
-.coverage.*
-.cache
-nosetests.xml
-coverage.xml
-*.cover
-.hypothesis/
-.pytest_cache/
-
-# Jupyter Notebook
-.ipynb_checkpoints
-
-# IPython
-profile_default/
-ipython_config.py
-
-# pyenv
-.python-version
-
-# Environments
-.venv
-env/
-venv/
-ENV/
-env.bak/
-venv.bak/
-
-# IDE
-.vscode/
-.idea/
-*.swp
-*.swo
-*~
-
-# OS
-.DS_Store
-.DS_Store?
-._*
-.Spotlight-V100
-.Trashes
-ehthumbs.db
-Thumbs.db
-
-# Results and logs
-results/
-logs/
-*.log
-
-# Data directories
-data/
-dataflows/data_cache/
-eval_results/
diff --git a/python/third_party/TradingAgents/.python-version b/python/third_party/TradingAgents/.python-version
deleted file mode 100644
index e4fba2183..000000000
--- a/python/third_party/TradingAgents/.python-version
+++ /dev/null
@@ -1 +0,0 @@
-3.12
diff --git a/python/third_party/TradingAgents/LICENSE b/python/third_party/TradingAgents/LICENSE
deleted file mode 100644
index 261eeb9e9..000000000
--- a/python/third_party/TradingAgents/LICENSE
+++ /dev/null
@@ -1,201 +0,0 @@
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright [yyyy] [name of copyright owner]
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/python/third_party/TradingAgents/README.md b/python/third_party/TradingAgents/README.md
deleted file mode 100644
index cac186915..000000000
--- a/python/third_party/TradingAgents/README.md
+++ /dev/null
@@ -1,213 +0,0 @@
-
-
----
-
-# TradingAgents: Multi-Agents LLM Financial Trading Framework
-
-> 🎉 **TradingAgents** officially released! We have received numerous inquiries about the work, and we would like to express our thanks for the enthusiasm in our community.
->
-> So we decided to fully open-source the framework. Looking forward to building impactful projects with you!
-
-
-
-## TradingAgents Framework
-
-TradingAgents is a multi-agent trading framework that mirrors the dynamics of real-world trading firms. By deploying specialized LLM-powered agents: from fundamental analysts, sentiment experts, and technical analysts, to trader, risk management team, the platform collaboratively evaluates market conditions and informs trading decisions. Moreover, these agents engage in dynamic discussions to pinpoint the optimal strategy.
-
-
-
-
-
-> TradingAgents framework is designed for research purposes. Trading performance may vary based on many factors, including the chosen backbone language models, model temperature, trading periods, the quality of data, and other non-deterministic factors. [It is not intended as financial, investment, or trading advice.](https://tauric.ai/disclaimer/)
-
-Our framework decomposes complex trading tasks into specialized roles. This ensures the system achieves a robust, scalable approach to market analysis and decision-making.
-
-### Analyst Team
-- Fundamentals Analyst: Evaluates company financials and performance metrics, identifying intrinsic values and potential red flags.
-- Sentiment Analyst: Analyzes social media and public sentiment using sentiment scoring algorithms to gauge short-term market mood.
-- News Analyst: Monitors global news and macroeconomic indicators, interpreting the impact of events on market conditions.
-- Technical Analyst: Utilizes technical indicators (like MACD and RSI) to detect trading patterns and forecast price movements.
-
-
-
-
-
-### Researcher Team
-- Comprises both bullish and bearish researchers who critically assess the insights provided by the Analyst Team. Through structured debates, they balance potential gains against inherent risks.
-
-
-
-
-
-### Trader Agent
-- Composes reports from the analysts and researchers to make informed trading decisions. It determines the timing and magnitude of trades based on comprehensive market insights.
-
-
-
-
-
-### Risk Management and Portfolio Manager
-- Continuously evaluates portfolio risk by assessing market volatility, liquidity, and other risk factors. The risk management team evaluates and adjusts trading strategies, providing assessment reports to the Portfolio Manager for final decision.
-- The Portfolio Manager approves/rejects the transaction proposal. If approved, the order will be sent to the simulated exchange and executed.
-
-
-
-
-
-## Installation and CLI
-
-### Installation
-
-Clone TradingAgents:
-```bash
-git clone https://github.com/TauricResearch/TradingAgents.git
-cd TradingAgents
-```
-
-Create a virtual environment in any of your favorite environment managers:
-```bash
-conda create -n tradingagents python=3.13
-conda activate tradingagents
-```
-
-Install dependencies:
-```bash
-pip install -r requirements.txt
-```
-
-### Required APIs
-
-You will also need the FinnHub API for financial data. All of our code is implemented with the free tier.
-```bash
-export FINNHUB_API_KEY=$YOUR_FINNHUB_API_KEY
-```
-
-You will need the OpenAI API for all the agents.
-```bash
-export OPENAI_API_KEY=$YOUR_OPENAI_API_KEY
-```
-
-### CLI Usage
-
-You can also try out the CLI directly by running:
-```bash
-python -m cli.main
-```
-You will see a screen where you can select your desired tickers, date, LLMs, research depth, etc.
-
-
-
-
-
-An interface will appear showing results as they load, letting you track the agent's progress as it runs.
-
-
- Configure API endpoints and authentication credentials for financial data and language models.
- Changes are automatically saved.
-
-
-
- {/* Error Message */}
- {error && (
-
-
-
-
-
-
Error
-
{error}
-
-
-
-
-
- )}
-
- {/* Financial Data API Keys */}
- {renderApiKeySection(
- 'Financial Data',
- 'API keys for accessing financial market data and datasets.',
- FINANCIAL_API_KEYS,
-
- )}
-
- {/* LLM API Keys */}
- {renderApiKeySection(
- 'Language Models',
- 'API keys for accessing various large language model providers.',
- LLM_API_KEYS,
-
- )}
-
- {/* Security Note */}
-
-
-
-
-
-
Security Note
-
- API keys are stored securely on your local system and changes are automatically saved.
- Keep your API keys secure and don't share them with others.
-
-
-
-
-
-
- );
-}
\ No newline at end of file
diff --git a/python/third_party/ai-hedge-fund/app/frontend/src/components/settings/appearance.tsx b/python/third_party/ai-hedge-fund/app/frontend/src/components/settings/appearance.tsx
deleted file mode 100644
index ffc9632fe..000000000
--- a/python/third_party/ai-hedge-fund/app/frontend/src/components/settings/appearance.tsx
+++ /dev/null
@@ -1,81 +0,0 @@
-import { Button } from '@/components/ui/button';
-import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
-import { cn } from '@/lib/utils';
-import { Monitor, Moon, Sun } from 'lucide-react';
-import { useTheme } from 'next-themes';
-
-export function ThemeSettings() {
- const { theme, setTheme } = useTheme();
-
- const themes = [
- {
- id: 'light',
- name: 'Light',
- description: 'A clean, bright interface',
- icon: Sun,
- },
- {
- id: 'dark',
- name: 'Dark',
- description: 'A comfortable dark interface',
- icon: Moon,
- },
- {
- id: 'system',
- name: 'System',
- description: 'Use your system preference',
- icon: Monitor,
- },
- ];
-
- return (
-
-
-
Theme
-
- Customize the look and feel of your application.
-
-
-
-
-
-
- Theme
-
-
-
-
- Select your preferred theme or use system setting to automatically switch between light and dark modes.
-
- );
-}
\ No newline at end of file
diff --git a/python/third_party/ai-hedge-fund/app/frontend/src/components/tabs/flow-tab-content.tsx b/python/third_party/ai-hedge-fund/app/frontend/src/components/tabs/flow-tab-content.tsx
deleted file mode 100644
index 7cabe55e6..000000000
--- a/python/third_party/ai-hedge-fund/app/frontend/src/components/tabs/flow-tab-content.tsx
+++ /dev/null
@@ -1,82 +0,0 @@
-import { Flow } from '@/components/Flow';
-import { useFlowContext } from '@/contexts/flow-context';
-import { useTabsContext } from '@/contexts/tabs-context';
-import { setNodeInternalState, setCurrentFlowId as setNodeStateFlowId } from '@/hooks/use-node-state';
-import { cn } from '@/lib/utils';
-import { flowService } from '@/services/flow-service';
-import { Flow as FlowType } from '@/types/flow';
-import { useEffect } from 'react';
-
-// Import the flow connection manager to check if flow is actively running
-
-interface FlowTabContentProps {
- flow: FlowType;
- className?: string;
-}
-
-export function FlowTabContent({ flow, className }: FlowTabContentProps) {
- const { loadFlow } = useFlowContext();
- const { activeTabId } = useTabsContext();
-
- // Enhanced load function that restores both use-node-state and node context data
- const loadFlowWithCompleteState = async (flowToLoad: FlowType) => {
- try {
- const flowId = flowToLoad.id.toString();
-
- // First, set the flow ID for node state isolation
- setNodeStateFlowId(flowId);
-
- // DO NOT clear configuration state when switching tabs - useNodeState handles flow isolation automatically
- // DO NOT reset runtime data when switching tabs - preserve all runtime state
- // Runtime data should only be reset when explicitly starting a new run via the Play button
- console.log(`[FlowTabContent] Loading flow ${flowId}, preserving all state (configuration + runtime)`);
-
- // Load the flow using the basic context function (handles React Flow state)
- await loadFlow(flowToLoad);
-
- // Then restore internal states for each node (use-node-state data)
- if (flowToLoad.nodes) {
- flowToLoad.nodes.forEach((node: any) => {
- if (node.data?.internal_state) {
- setNodeInternalState(node.id, node.data.internal_state);
- }
- });
- }
-
- // NOTE: We intentionally do NOT restore nodeContextData here
- // Runtime execution data (messages, analysis, agent status) should start fresh
- // Only configuration data (tickers, model selections) is restored above
- } catch (error) {
- console.error('Failed to load flow with complete state:', error);
- throw error;
- }
- };
-
- // Fetch the latest flow state when this tab becomes active
- useEffect(() => {
- const isThisTabActive = activeTabId === `flow-${flow.id}`;
-
- if (isThisTabActive) {
- const fetchAndLoadFlow = async () => {
- try {
- // Fetch the latest flow data from the backend
- const latestFlow = await flowService.getFlow(flow.id);
- // Load the fresh flow data with complete state restoration
- await loadFlowWithCompleteState(latestFlow);
- } catch (error) {
- console.error('Failed to fetch latest flow state:', error);
- // Fallback to loading the cached flow data with complete state restoration
- await loadFlowWithCompleteState(flow);
- }
- };
-
- fetchAndLoadFlow();
- }
- }, [activeTabId, flow.id, flow, loadFlow]);
-
- return (
-