确认PokieTicker新闻库数据源
This commit is contained in:
@@ -226,12 +226,18 @@ class TradingPipeline:
|
||||
"settlement_result": settlement_result,
|
||||
}
|
||||
|
||||
def reload_runtime_assets(self) -> Dict[str, Any]:
|
||||
"""Reload prompt assets, bootstrap config, and active skills for all agents."""
|
||||
def reload_runtime_assets(
|
||||
self,
|
||||
runtime_config: Optional[Dict[str, Any]] = None,
|
||||
) -> Dict[str, Any]:
|
||||
"""Reload prompt assets and safe in-process runtime settings."""
|
||||
from backend.agents.skills_manager import SkillsManager
|
||||
from backend.agents.toolkit_factory import load_agent_profiles
|
||||
|
||||
config_name = getattr(self.pm, "config", {}).get("config_name", "default")
|
||||
if runtime_config and "max_comm_cycles" in runtime_config:
|
||||
self.max_comm_cycles = int(runtime_config["max_comm_cycles"])
|
||||
|
||||
skills_manager = SkillsManager()
|
||||
profiles = load_agent_profiles()
|
||||
active_skill_map = skills_manager.prepare_active_skills(
|
||||
@@ -262,6 +268,7 @@ class TradingPipeline:
|
||||
agent_id: [path.name for path in paths]
|
||||
for agent_id, paths in active_skill_map.items()
|
||||
},
|
||||
"max_comm_cycles": self.max_comm_cycles,
|
||||
}
|
||||
|
||||
async def _clear_all_agent_memory(self):
|
||||
|
||||
Reference in New Issue
Block a user