If we have all custom actions class mapped in a single Action.py file then it is becoming very unreadable and messy. So is there any way that we can configure multiple Actions.py file with custom actions ? Thank you
I have defined my custom Actions in actions.py too, and all the examples i have seen so far did it that way, but i am sure there are ways to tell core to get the custom Actions from different files.
If you want to keep it clean, you can maybe split the code into a few python files, and later call these files in action.py.
I have the following folder structure:
- My Project
- actions
- action_1.py
- action_2.py
- action_3.py
- actions
Run your actions using the following command in your root folder
- python -m rasa_core_sdk.endpoint --actions actions
The -m treats the actions folder as a module rather than a directory.
3 Likes
Hello can you please describe more!!