-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core re-asks for slot upon form interruption #7751
Comments
Thanks for the issue, @JustinaPetr will get back to you about it soon! You may find help in the docs and the forum, too 🤗 |
The bug was introduced as part of the solution for this issue #6977
|
Fix for issue #7751 to avoid that a form will re-ask for the slot prior to switching to another form.
forms is first called for the original form. - The slot validation is called on the sentence that will trigger the form switching, but the original form is still active. The slot validation will fail and will also return ActionExecutionRejected event - Need to avoid raising the ActionExecutionRejected event too soon, because other slots might be set by the custom action. Reverted that change with a comment to clarify. - Need to avoid asking for the requested slot by checking if ActionExecutionRejected event was returned. The form is not yet done, so the is_done() method is still False.
is this fixed in 3b27bcc ? |
@ArjaanBuijk Closing this issue because it looks like it was fixed in your PR |
Rasa version: 2.2.5
Rasa SDK version (if used & relevant): 2.2.0
Python version: 3.6.9
Operating system (windows, osx, ...): Linux-4.19.112+-x86_64-with-Ubuntu-18.04-bionic
Issue:
When a form is (temporarily) interrupted as part of handling an unhappy path, rasa core prints the
utter_ask_<form_name>_<slot_name>
message just before executing the actions specified to handle the deviation from the happy path.An example can be seen executing the financial demo. Using rasa version 2.0.8, the expected dialogue is generated when trying to switch forms:
However, using version 2.2.5, this is the generated dialogue:
Error (including full traceback):
With Rasa version 2.0.8:
With Rasa version 2.2.5:
Content of configuration file (config.yml) (if relevant):
See the financial demo
Content of domain file (domain.yml) (if relevant):
See the financial demo
The text was updated successfully, but these errors were encountered: