def apply_to(self, tracker):
from rasa.core.actions.action import ACTION_LISTEN_NAME
tracker._reset()
tracker.trigger_followup_action(ACTION_LISTEN_NAME)
If I do that, the AttributeError in the title is thrown. After investigating the method definitions - may it be the case, that the documentation is not up to date at this point?
I know that I could add the restart_functionality per intent in my stories but with growing size and amount of stories, that doesn’t seem to be the best way…
I there any other way to achieve this functionality? I have tried to return [Restarted()] but that didn’t help.
Don’t know how to solve this issue yet but I figured out the reason. I guess you are importing Tracker from rasa_sdk too. Tracker from rasa_sdk package doesn’t have that method.
this could be kind of “un-rasa-esque”. May I ask why you want to do a full reset on the tracker? Maybere there is another way to achieve the desired functionality!?
if user asks question that not trained, bot is responding with action listen, and the story breaks, i wrote a custom action to solve that, the custom action will utter i am not trained and reset the tracker, so i can continue with new flow