Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

Fix: reset tools in/out-put. (#10378)

Kevin Hue7dde69584e5
diff --git a/agent/component/agent_with_tools.py b/agent/component/agent_with_tools.py
index 55c7f2f630..a85df4029d 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()
+