Merge pull request #30 from bucolucas/add-clear-command

Add abstract method 'clear' to BaseTool
This commit is contained in:
2024-08-18 09:01:24 -05:00
committed by GitHub
+4 -1
View File
@@ -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!")