feat:精简处理器上下文

This commit is contained in:
SengokuCola
2025-06-23 00:39:13 +08:00
parent 2128eb6bf2
commit 3cb60b03b4
10 changed files with 159 additions and 90 deletions

View File

@@ -660,6 +660,7 @@ class HeartFChatting:
}
with Timer("执行动作", cycle_timers):
action_type, action_data, reasoning = (
plan_result.get("action_result", {}).get("action_type", "error"),
plan_result.get("action_result", {}).get("action_data", {}),
@@ -674,7 +675,7 @@ class HeartFChatting:
action_str = action_type
logger.debug(f"{self.log_prefix} 麦麦想要:'{action_str}'")
success, reply_text, command = await self._handle_action(
action_type, reasoning, action_data, cycle_timers, thinking_id
)