refactor: unify host agent runtime access

This commit is contained in:
jxxghp
2026-08-24 06:42:07 +08:00
parent 46c5eec54e
commit 8e669d415e
11 changed files with 55 additions and 23 deletions
+2
View File
@@ -78,6 +78,8 @@ def get_agent_manager() -> Any:
def get_running_agent_manager() -> Any | None:
"""返回已进入 RUNNING 的 AgentManager,不触发实现物化。"""
if _running_agent_manager_provider is None:
return None
return _resolve(_running_agent_manager_provider, "running_agent_manager")