Created
January 10, 2019 16:05
-
-
Save JustinaPetr/543cd80d8decafe03a5e4bf528c27b3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def required_slots(tracker): | |
# type: () -> List[Text] | |
"""A list of required slots that the form has to fill""" | |
if tracker.get_slot('cuisine') == 'greek': | |
return ["cuisine", "num_people", "outdoor_seating", | |
"preferences", "feedback"] | |
else: | |
return ["cuisine", "num_people", | |
"preferences", "feedback"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment