refactor: move strategy_orchestrator and optuna_optimizer to closed-source (local/)

This commit is contained in:
TPTBusiness
2026-05-03 21:38:09 +02:00
parent 1e7d4b76a0
commit cc265d6045
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -140,4 +140,4 @@ pickle_cache/
RD-Agent_workspace_run*/
AGENTS.md
CLAUDE.md
.claude/
.claude/rdagent/components/coder/strategy_orchestrator.py
+1 -1
View File
@@ -681,7 +681,7 @@ def generate_strategies_cli(
try:
import pandas as pd
from rdagent.components.coder.strategy_orchestrator import StrategyOrchestrator
from rdagent.scenarios.qlib.local.strategy_orchestrator import StrategyOrchestrator
all_results = []
best_strategy = None
+1 -1
View File
@@ -293,7 +293,7 @@ class QuantRDLoop(RDLoop):
from pathlib import Path
import yaml
from rdagent.components.coder.strategy_orchestrator import StrategyOrchestrator
from rdagent.scenarios.qlib.local.strategy_orchestrator import StrategyOrchestrator
# Load improved prompt
project_root = Path(__file__).parent.parent.parent.parent
@@ -3,8 +3,8 @@ Unified, verifiable backtesting engine.
Single entry point (`backtest_signal`) used by:
- scripts/predix_gen_strategies_real_bt.py
- rdagent/components/coder/strategy_orchestrator.py
- rdagent/components/coder/optuna_optimizer.py
- rdagent/scenarios/qlib/local/strategy_orchestrator.py
- rdagent/scenarios/qlib/local/optuna_optimizer.py
- rdagent/components/backtesting/backtest_engine.py
Design goals
+3 -3
View File
@@ -45,7 +45,7 @@ class TestStrategyOrchestratorSyntax:
def test_module_imports(self):
"""Verify StrategyOrchestrator can be imported after syntax fix."""
from rdagent.components.coder.strategy_orchestrator import StrategyOrchestrator
from rdagent.scenarios.qlib.local.strategy_orchestrator import StrategyOrchestrator
assert StrategyOrchestrator is not None
@@ -263,7 +263,7 @@ class TestRebacktestBareExcept:
class TestAllImportsDontCrash:
def test_strategy_orchestrator_imports(self):
"""Verify all fixed modules import without errors."""
import rdagent.components.coder.strategy_orchestrator # noqa: F401
# moved to local/ # noqa: F401
def test_factor_runner_imports(self):
import rdagent.scenarios.qlib.developer.factor_runner # noqa: F401
@@ -278,4 +278,4 @@ class TestAllImportsDontCrash:
import rdagent.scenarios.qlib.developer.model_runner # noqa: F401
def test_optuna_optimizer_imports(self):
import rdagent.components.coder.optuna_optimizer # noqa: F401
# moved to local/ # noqa: F401