From 6ad67f24a3f628901944e8f80143ac86ce8dcf06 Mon Sep 17 00:00:00 2001 From: bucolucas Date: Sun, 18 Aug 2024 09:00:50 -0500 Subject: [PATCH] Add 'clear' command to BaseTool class --- tools/base_tool.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/base_tool.py b/tools/base_tool.py index 13ddbe4..0187e65 100644 --- a/tools/base_tool.py +++ b/tools/base_tool.py @@ -1,4 +1,3 @@ -# tools/base_tool.py from abc import ABC, abstractmethod class BaseTool(ABC): @@ -9,3 +8,7 @@ class BaseTool(ABC): @abstractmethod def execute(self, function_name, **kwargs): pass + + @abstractmethod + def clear(self): + raise NotImplementedError("Subclasses should implement this!")