auto-sync: 2026-05-20 00:04:25

This commit is contained in:
cfdaily
2026-05-20 00:04:25 +08:00
parent a4fd2c64d7
commit 66e4304967
+2
View File
@@ -45,6 +45,7 @@ class Dispatcher:
spawner: Optional[Any] = None,
counter: Optional[Any] = None,
db_path: Optional[Path] = None,
guardrails: Optional[Any] = None,
# 兼容旧接口(deprecated,逐步移除)
registered_agents: Optional[List[str]] = None,
capability_map: Optional[Dict[str, List[str]]] = None,
@@ -53,6 +54,7 @@ class Dispatcher:
self.spawner = spawner
self.counter = counter
self.db_path = db_path
self.guardrails = guardrails
# 兼容:如果没有 router,用旧逻辑(临时)
self._legacy_mode = router is None