正确地按照类型获取组件信息
This commit is contained in:
@@ -119,9 +119,7 @@ class ActionPlanner:
|
|||||||
current_available_actions_dict = self.action_manager.get_using_actions()
|
current_available_actions_dict = self.action_manager.get_using_actions()
|
||||||
|
|
||||||
# 获取完整的动作信息
|
# 获取完整的动作信息
|
||||||
all_registered_actions: List[ActionInfo] = list(
|
all_registered_actions = component_registry.get_components_by_type(ComponentType.ACTION) # type: ignore
|
||||||
component_registry.get_components_by_type(ComponentType.ACTION).values() # type: ignore
|
|
||||||
)
|
|
||||||
current_available_actions = {}
|
current_available_actions = {}
|
||||||
for action_name in current_available_actions_dict:
|
for action_name in current_available_actions_dict:
|
||||||
if action_name in all_registered_actions:
|
if action_name in all_registered_actions:
|
||||||
|
|||||||
Reference in New Issue
Block a user