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
|
from abc import ABC, abstractmethod
|
||||||
|
|
||||||
class BaseTool(ABC):
|
class BaseTool(ABC):
|
||||||
@@ -9,3 +8,7 @@ class BaseTool(ABC):
|
|||||||
@abstractmethod
|
@abstractmethod
|
||||||
def execute(self, function_name, **kwargs):
|
def execute(self, function_name, **kwargs):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abstractmethod
|
||||||
|
def clear(self):
|
||||||
|
raise NotImplementedError("Subclasses should implement this!")
|
||||||
|
|||||||
Reference in New Issue
Block a user