diff --git a/src/multi_swarm_core/multi_swarm_core/orchestrator/run.py b/src/multi_swarm_core/multi_swarm_core/orchestrator/run.py index b86acc5..5fe849c 100644 --- a/src/multi_swarm_core/multi_swarm_core/orchestrator/run.py +++ b/src/multi_swarm_core/multi_swarm_core/orchestrator/run.py @@ -112,10 +112,16 @@ def run_phase1( repo = Repository(cfg.db_path) repo.init_schema() + # Escludi prompt_library (PromptLibrary dataclass non e' JSON-serializable); + # salva solo i nomi degli stili per reproducibility. config_dict = { - **cfg.__dict__, + **{k: v for k, v in cfg.__dict__.items() if k != "prompt_library"}, "db_path": str(cfg.db_path), "model_tier": cfg.model_tier.value, + "prompt_library_styles": ( + list(cfg.prompt_library.cognitive_styles) + if cfg.prompt_library is not None else None + ), } run_id = repo.create_run(name=cfg.run_name, config=config_dict) diff --git a/src/strategy_crypto/strategy_crypto/strategies/btc_fb63e851.json b/src/strategy_crypto/strategy_crypto/strategies/btc_fb63e851.json deleted file mode 100644 index 3f79cb7..0000000 --- a/src/strategy_crypto/strategy_crypto/strategies/btc_fb63e851.json +++ /dev/null @@ -1,142 +0,0 @@ -{ - "rules": [ - { - "condition": { - "op": "and", - "args": [ - { - "op": "gt", - "args": [ - { - "kind": "indicator", - "name": "rsi", - "params": [ - 14 - ] - }, - { - "kind": "literal", - "value": 70.0 - } - ] - }, - { - "op": "gt", - "args": [ - { - "kind": "indicator", - "name": "atr", - "params": [ - 14 - ] - }, - { - "kind": "indicator", - "name": "sma", - "params": [ - 14 - ] - } - ] - }, - { - "op": "gt", - "args": [ - { - "kind": "feature", - "name": "hour" - }, - { - "kind": "literal", - "value": 9 - } - ] - }, - { - "op": "lt", - "args": [ - { - "kind": "feature", - "name": "hour" - }, - { - "kind": "literal", - "value": 17 - } - ] - } - ] - }, - "action": "entry-short" - }, - { - "condition": { - "op": "and", - "args": [ - { - "op": "lt", - "args": [ - { - "kind": "indicator", - "name": "rsi", - "params": [ - 14 - ] - }, - { - "kind": "literal", - "value": 30.0 - } - ] - }, - { - "op": "lt", - "args": [ - { - "kind": "indicator", - "name": "atr", - "params": [ - 14 - ] - }, - { - "kind": "indicator", - "name": "sma", - "params": [ - 14 - ] - } - ] - }, - { - "op": "gt", - "args": [ - { - "kind": "feature", - "name": "hour" - }, - { - "kind": "literal", - "value": 9 - } - ] - }, - { - "op": "lt", - "args": [ - { - "kind": "feature", - "name": "hour" - }, - { - "kind": "literal", - "value": 17 - } - ] - } - ] - }, - "action": "entry-long" - } - ] -} \ No newline at end of file