feat:给planner最终展示添加统一结果

This commit is contained in:
SengokuCola
2026-04-07 18:16:12 +08:00
parent 6968879a04
commit 2233ee1af4
12 changed files with 651 additions and 235 deletions

View File

@@ -935,11 +935,3 @@ class MaisakaChatLoopService:
return filtered_history, hidden_assistant_count
@staticmethod
def _drop_orphan_tool_results(
selected_history: List[LLMContextMessage],
) -> List[LLMContextMessage]:
"""移除窗口中缺少对应 tool_call 的工具结果消息。"""
normalized_history, _ = drop_orphan_tool_results(selected_history)
return normalized_history