Skip to content

Instantly share code, notes, and snippets.

@JustinaPetr
Created January 10, 2019 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustinaPetr/543cd80d8decafe03a5e4bf528c27b3b to your computer and use it in GitHub Desktop.
Save JustinaPetr/543cd80d8decafe03a5e4bf528c27b3b to your computer and use it in GitHub Desktop.
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