From e7dde69584e5af151657a1f02688dfc86bfffbba Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Tue, 30 Sep 2025 15:13:18 +0800 Subject: [PATCH] Fix: reset tools in/out-put. (#10378) ### What problem does this PR solve? #10361 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- agent/component/agent_with_tools.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/agent/component/agent_with_tools.py b/agent/component/agent_with_tools.py index 55c7f2f63..a85df4029 100644 --- a/agent/component/agent_with_tools.py +++ b/agent/component/agent_with_tools.py @@ -346,3 +346,7 @@ Respond immediately with your final comprehensive answer. return "Error occurred." + def reset(self): + for k, cpn in self.tools.items(): + cpn.reset() +