Update src/common/tool_history.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
pull/1186/head
Windpicker-owo 2025-08-19 12:19:09 +08:00 committed by GitHub
parent d8f3338f38
commit eccb04d4e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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():
"""
包装工具执行器以添加历史记录功能