正确地按照类型获取组件信息

This commit is contained in:
A0000Xz
2025-07-23 01:49:28 +08:00
committed by GitHub
parent 10bf424540
commit 4ee832b5a8

View File

@@ -119,9 +119,7 @@ class ActionPlanner:
current_available_actions_dict = self.action_manager.get_using_actions()
# 获取完整的动作信息
all_registered_actions: List[ActionInfo] = list(
component_registry.get_components_by_type(ComponentType.ACTION).values() # type: ignore
)
all_registered_actions = component_registry.get_components_by_type(ComponentType.ACTION) # type: ignore
current_available_actions = {}
for action_name in current_available_actions_dict:
if action_name in all_registered_actions: