typing
This commit is contained in:
@@ -51,8 +51,6 @@ NO_ACTION = {
|
|||||||
"action_prompt": "",
|
"action_prompt": "",
|
||||||
}
|
}
|
||||||
|
|
||||||
IS_MAI4U = False
|
|
||||||
|
|
||||||
install(extra_lines=3)
|
install(extra_lines=3)
|
||||||
|
|
||||||
# 注释:原来的动作修改超时常量已移除,因为改为顺序执行
|
# 注释:原来的动作修改超时常量已移除,因为改为顺序执行
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import json
|
import json
|
||||||
import time
|
import time
|
||||||
import traceback
|
import traceback
|
||||||
from typing import Dict, Any, Optional, Tuple, List
|
from typing import Dict, Any, Optional, Tuple
|
||||||
from rich.traceback import install
|
from rich.traceback import install
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from json_repair import repair_json
|
from json_repair import repair_json
|
||||||
@@ -119,7 +119,9 @@ 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 = component_registry.get_components_by_type(ComponentType.ACTION) # type: ignore
|
all_registered_actions: Dict[str, ActionInfo] = component_registry.get_components_by_type( # type: ignore
|
||||||
|
ComponentType.ACTION
|
||||||
|
)
|
||||||
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