From fd7289c8d3489a9551d1d34f49802c367ec9770f Mon Sep 17 00:00:00 2001 From: Siddhesh Agarwal Date: Thu, 31 Oct 2024 20:40:21 +0530 Subject: [PATCH] recommended changes --- simplemind/models.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/simplemind/models.py b/simplemind/models.py index 121e128..731c1a3 100644 --- a/simplemind/models.py +++ b/simplemind/models.py @@ -29,27 +29,22 @@ class BasePlugin(SMBaseModel, ABC): # Plugin metadata. meta: Dict[str, Any] = {} - @abstractmethod def initialize_hook(self, conversation: "Conversation") -> Any: """Initialize a hook for the plugin.""" raise NotImplementedError - @abstractmethod def cleanup_hook(self, conversation: "Conversation") -> Any: """Cleanup a hook for the plugin.""" raise NotImplementedError - @abstractmethod def add_message_hook(self, conversation: "Conversation", message: "Message") -> Any: """Add a message hook for the plugin.""" raise NotImplementedError - @abstractmethod def pre_send_hook(self, conversation: "Conversation") -> Any: """Pre-send hook for the plugin.""" raise NotImplementedError - @abstractmethod def post_send_hook(self, conversation: "Conversation", response: "Message") -> Any: """Post-send hook for the plugin.""" raise NotImplementedError