feat(dev): 增加规划器动作日志输出

在动作规划器完成规划后,增加一条日志记录,用于输出规划器生成的具体动作。这有助于在开发和调试过程中,更直观地追踪和理解系统的决策流程。
This commit is contained in:
minecraft1024a
2025-09-14 13:37:25 +08:00
committed by Windpicker-owo
parent 3414fea3fc
commit beec0a7f13

View File

@@ -205,7 +205,7 @@ class CycleProcessor:
raise UserWarning(f"插件{result.get_summary().get('stopped_handlers', '')}于规划前中断了内容生成") raise UserWarning(f"插件{result.get_summary().get('stopped_handlers', '')}于规划前中断了内容生成")
with Timer("规划器", cycle_timers): with Timer("规划器", cycle_timers):
actions, _ = await self.action_planner.plan(mode=mode) actions, _ = await self.action_planner.plan(mode=mode)
logger.info(str(actions))
async def execute_action(action_info): async def execute_action(action_info):
"""执行单个动作的通用函数""" """执行单个动作的通用函数"""
try: try: