From eccb04d4e03321217d4db86ef12bcb3829c4f93a Mon Sep 17 00:00:00 2001 From: Windpicker-owo <3431391539@qq.com> Date: Tue, 19 Aug 2025 12:19:09 +0800 Subject: [PATCH] Update src/common/tool_history.py Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- src/common/tool_history.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/tool_history.py b/src/common/tool_history.py index b558a8d8..dd873c9e 100644 --- a/src/common/tool_history.py +++ b/src/common/tool_history.py @@ -311,9 +311,10 @@ class ToolHistoryManager: def clear_history(self): """清除历史记录""" self._history.clear() - self._rotate_file() + self._save_history() logger.info("工具调用历史记录已清除") + def wrap_tool_executor(): """ 包装工具执行器以添加历史记录功能