Add 'clear' command to BaseTool class
This commit is contained in:
+4
-1
@@ -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!")
|
||||
|
||||
Reference in New Issue
Block a user