Hi
I’m trying to use slot validations with ValidationAction but getting error ImportError: cannot import name ‘ValidationAction’ from ‘rasa_sdk’ while executing the below.
from rasa_sdk import ValidationAction
Can someone help on how to resolve this error.
I’m trying to do this referring to Slot Validation Actions
Also can you give me an example of how to use slot validations without forms and with forms.
When I don’t give required_slots, it’s giving me below error:
FutureWarning: The definition of slot mappings in your form should always be preceded by the keyword required_slots. The lack of this keyword will be deprecated in Rasa Open Source 3.0.0. Please see Forms for more information.
when I give required_slots, it’s giving me:
UserWarning: Loading domain from ‘domain.yml’ failed. Using empty domain. Error: ‘The contents of form ‘required_slots’ were specified as ‘<class ‘list’>’. They need to be specified as dictionary. Please see Forms for more information.’
I have referred to the rasa docs and videos as well when I give similar to rasa docs it gives me the error to specify it as dictionary which I’m not able to find anywhere in docs nor in any of the videos.
Is this because I’m not using the latest version? But I changed the versions because of the compatibility issues for rasa x. I’m not sure on how to proceed with this.