refactor(planner): 移除大小脑规划器类型以简化决策流程

本次重构删除了`PlannerType`(大小脑规划器)的枚举及其在动作规划和组件定义中的相关逻辑。通过移除大小脑的概念,简化了`ActionPlanner`的决策过程,使其不再需要根据规划器类型来筛选可用动作。

这一变更统一了动作的处理方式,降低了系统的复杂性,使得未来的功能扩展和维护更加直接和清晰。
This commit is contained in:
minecraft1024a
2025-09-07 12:53:06 +08:00
committed by Windpicker-owo
parent eeca3a3dad
commit 474ab78002
3 changed files with 2 additions and 23 deletions

View File

@@ -6,7 +6,7 @@ from typing import Tuple, Optional, Dict, Any
from src.common.logger import get_logger
from src.chat.message_receive.chat_stream import ChatStream
from src.plugin_system.base.component_types import ActionActivationType, ChatMode, ActionInfo, ComponentType, ChatType,PlannerType
from src.plugin_system.base.component_types import ActionActivationType, ChatMode, ActionInfo, ComponentType, ChatType,
from src.plugin_system.apis import send_api, database_api, message_api
@@ -92,7 +92,6 @@ class BaseAction(ABC):
self.parallel_action: bool = getattr(self.__class__, "parallel_action", True)
self.associated_types: list[str] = getattr(self.__class__, "associated_types", []).copy()
self.chat_type_allow: ChatType = getattr(self.__class__, "chat_type_allow", ChatType.ALL)
self.planner_type: PlannerType = getattr(self.__class__, "planner_type", ChatType.ALL)
# =============================================================================