Under a custom action in local mode, when i try to pause a conversation using return [ConversationPaused()] i m getting the following error: NameError: name ‘ConversationPaused’ is not defined
Hello,
Did you import it in the action file?
from rasa_sdk.events import ConversationPaused()
It’s still returning the same error after importing it: from rasa_sdk.events import ActionExecuted, ActionReverted, ActiveLoop, AllSlotsReset, SlotSet, FollowupAction, ReminderCancelled, ReminderScheduled, SessionStarted, UserUtteranceReverted, ConversationPaused
note: ConversationPaused() is returning an error.
Which version you used with rasa_sdk
What if you try from rasa.core.events import ConversationPaused
?
ModuleNotFoundError: No module named ‘rasa.core.events’
It’s working now after the reboot: from rasa_sdk.events import ActionExecuted, ActionReverted, ActiveLoop, AllSlotsReset, SlotSet, FollowupAction, ReminderCancelled, ReminderScheduled, SessionStarted, UserUtteranceReverted, ConversationPaused