Created
January 10, 2019 16:05
-
-
Save JustinaPetr/970a5cc2aa0a78a1623c808f842f22ec 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
class RestaurantForm(FormAction): | |
"""Example of a custom form action""" | |
def name(self): | |
"""Unique identifier of the form""" | |
return "restaurant_form" | |
@staticmethod | |
def required_slots(tracker: Tracker) -> List[Text]: | |
"""A list of required slots that the form has to fill""" | |
return ["cuisine", "num_people", "outdoor_seating", | |
"preferences", "feedback"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment