diff --git a/kairon/api/app/routers/bot/bot.py b/kairon/api/app/routers/bot/bot.py index 318981640..1e1580598 100644 --- a/kairon/api/app/routers/bot/bot.py +++ b/kairon/api/app/routers/bot/bot.py @@ -34,7 +34,6 @@ from kairon.shared.data.audit.processor import AuditDataProcessor from kairon.shared.data.constant import ENDPOINT_TYPE, ModelTestType, \ AuditlogActions -from kairon.shared.data.data_models import MailConfigRequest from kairon.shared.data.data_objects import TrainingExamples, ModelTraining, Rules from kairon.shared.data.model_processor import ModelProcessor from kairon.shared.data.processor import MongoProcessor diff --git a/kairon/events/definitions/mail_channel.py b/kairon/events/definitions/mail_channel.py index 533a1ea0f..07fc4b901 100644 --- a/kairon/events/definitions/mail_channel.py +++ b/kairon/events/definitions/mail_channel.py @@ -88,7 +88,7 @@ def execute(self, **kwargs): try: vals = MailProcessor.read_mails(self.bot) print(vals) - emails, user, next_delay = vals + emails, _, next_delay = vals for email in emails: ev = MailProcessEvent(self.bot, self.user) ev.validate() diff --git a/kairon/shared/data/data_models.py b/kairon/shared/data/data_models.py index 1fcc76791..8be28e7e7 100644 --- a/kairon/shared/data/data_models.py +++ b/kairon/shared/data/data_models.py @@ -1342,10 +1342,3 @@ def validate_name(cls, values): return values - -class MailConfigRequest(BaseModel): - intent: str - entities: list[str] = [] - subjects: list[str] = [] - classification_prompt: str - reply_template: str = None \ No newline at end of file