15 lines
319 B
Python
15 lines
319 B
Python
from abc import ABC, abstractmethod
|
|
|
|
class BaseTool(ABC):
|
|
@abstractmethod
|
|
def get_functions(self):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def execute(self, function_name, **kwargs):
|
|
pass
|
|
|
|
@abstractmethod
|
|
def clear(self):
|
|
raise NotImplementedError("Subclasses should implement this!")
|