Skip to content

Commit

Permalink
changes and test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
spandan_mondal committed Dec 8, 2024
1 parent c7434a5 commit 0200e8d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
1 change: 0 additions & 1 deletion kairon/api/app/routers/bot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion kairon/events/definitions/mail_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
7 changes: 0 additions & 7 deletions kairon/shared/data/data_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0200e8d

Please sign in to comment.