2024-08-16 12:43:59 -05:00
|
|
|
from abc import ABC, abstractmethod
|
|
|
|
|
|
|
|
|
|
class BaseTool(ABC):
|
|
|
|
|
@abstractmethod
|
|
|
|
|
def get_functions(self):
|
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
|
def execute(self, function_name, **kwargs):
|
|
|
|
|
pass
|
2024-08-18 09:00:50 -05:00
|
|
|
|
|
|
|
|
@abstractmethod
|
|
|
|
|
def clear(self):
|
|
|
|
|
raise NotImplementedError("Subclasses should implement this!")
|