Exemplo n.º 1
0
 def required_fields():
     return [
         EntityFormField(
             "duration",
             "fund_achievement_duration"),  # entity_name, slot_name
         EntityFormField("topk", "fund_achievement_topk"),
     ]
Exemplo n.º 2
0
 def required_fields():
     return [
         EntityFormField("purpose", "purpose"),
         EntityFormField("purpose_sub", "purpose_sub"),
         EntityFormField("recoil", "recoil"),
         EntityFormField("category", "category"),
         EntityFormField("manufacturer", "manufacturer")
     ]
Exemplo n.º 3
0
 def required_fields():
     # no need for candidate username and password here, we auto generate it for them. Fix it if you want
     return [
         EntityFormField("candidateName", "candidateName"),
         EntityFormField("candidateNumber", "candidateNumber"),
         EntityFormField("center_number", "center_number"),
         EntityFormField("candidateLevel", "candidateLevel"),
         EntityFormField("candidateBirth", "candidateBirth"),
         EntityFormField("gender", "gender"),
         EntityFormField("seat", "seat"),
         EntityFormField("year", "year")
     ]
Exemplo n.º 4
0
class ActionHotel(FormAction):

    REQUIRED_FIELDS = [
        EntityFormField("people", "people"),
        EntityFormField("location", "location"),
        EntityFormField("price", "price"),
        EntityFormField("date", "start_date"),
        EntityFormField("date", "end_date")
    ]

    OPTIONAL_FIELDS = [
        EntityFormField("has_gym", "has_gym"),
        EntityFormField("has_spa", "has_spa"),
        EntityFormField("breakfast", "breakfast")
    ]

    def name(self):
        return "action_hotel"

    def submit(self, dispatcher, tracker, domain):
        dispatcher.utter_template('utter_finish')
        return []
Exemplo n.º 5
0
class ActionRestaurant(FormAction):

    RANDOMIZE = True

    REQUIRED_FIELDS = [
        EntityFormField("people", "people"),
        EntityFormField("location", "location"),
        EntityFormField("price", "price"),
        EntityFormField("cuisine", "cuisine")
    ]

    OPTIONAL_FIELDS = [
        EntityFormField("outdoor_seating", "outdoor_seating"),
        EntityFormField("reservations", "reservations"),
        EntityFormField("date_suitable", "date_suitable")
    ]

    def name(self):
        return "action_restaurant"

    def submit(self, dispatcher, tracker, domain):
        dispatcher.utter_template('utter_finish')
        return []
Exemplo n.º 6
0
 def required_fields():
     return [EntityFormField("application", "application")]
Exemplo n.º 7
0
 def required_fields():
     return [
         EntityFormField("appname", "appname"),
         EntityFormField("environment", "environment")
     ]
Exemplo n.º 8
0
 def required_fields():
     return [EntityFormField("servicename", "servicename")]
Exemplo n.º 9
0
 def required_fields():
     return [
         EntityFormField("summary", "summary"),
         EntityFormField("description", "description")
     ]
Exemplo n.º 10
0
 def required_fields():
     return [EntityFormField("building", "building")]
Exemplo n.º 11
0
 def required_fields():
     return [EntityFormField("codecoverageapp", "codecoverageapp")]
Exemplo n.º 12
0
 def required_fields():
     return [
         EntityFormField("gender", "gender"),
         EntityFormField("age", "age"),
     ]
Exemplo n.º 13
0
 def required_fields():
     return [EntityFormField("age", "age")]
Exemplo n.º 14
0
 def required_fields():
     return [EntityFormField("GPE", "GPE"),
         EntityFormField("skill", "skill"),
     ]
Exemplo n.º 15
0
 def required_fields():
     return [
         EntityFormField("email", "new_email"),
         BooleanFormField("new_email_confirmed", "conversation_confirm",
                          "conversation_cancel")
     ]
Exemplo n.º 16
0
 def required_fields():
     return [
         EntityFormField("disease", "disease"),
         EntityFormField("time", "time"),
     ]
Exemplo n.º 17
0
 def required_fields():
     return [EntityFormField("word", "word")]
Exemplo n.º 18
0
 def required_fields():
     return [
         EntityFormField("car_model", "car_model_slot"),
         FreeTextFormField("zipcode_slot"),
         BooleanFormField("has_driver_license_slot", "affirm", "deny"),
     ]
Exemplo n.º 19
0
 def required_fields():
     return [
         EntityFormField("location", "location"),
         EntityFormField("cuisine", "cuisine"),
         EntityFormField("price", "price")
     ]
Exemplo n.º 20
0
    def required_fields():
        return [
			EntityFormField("location", "location"),
            EntityFormField("cuisine", "cuisine"),
            EntityFormField("budget", "budget"),
        ]
Exemplo n.º 21
0
 def required_fields():
     return [EntityFormField("JIRAID", "JIRAID")]
Exemplo n.º 22
0
 def __init__(self, entity_name, slot_name):
     EntityFormField.__init__(self, entity_name, slot_name)
Exemplo n.º 23
0
 def required_fields():
     return [
         EntityFormField("cuisine", "cuisine"),
         EntityFormField("number", "people")
     ]
Exemplo n.º 24
0
 def required_fields():
     return [
         EntityFormField("address", "address"),
         EntityFormField("date-time", "date-time"),
     ]
Exemplo n.º 25
0
 def required_fields():
     return [EntityFormField("jenkinsjob", "jenkinsjob")]
Exemplo n.º 26
0
 def required_fields():
     return [
         EntityFormField("cuisine", "cuisine"),
         EntityFormField("number", "people"),
         BooleanFormField("vegetarian", "affirm", "deny")
     ]
Exemplo n.º 27
0
 def required_fields():
     return [
         #EntityFormField(<Entity>,<Slot>),
         EntityFormField("phone", "phone"),
         EntityFormField("company", "company"),
     ]
Exemplo n.º 28
0
 def required_fields():
     return [
         EntityFormField("GPE", "GPE_origin"),
         EntityFormField("GPE", "GPE_destination")
     ]
Exemplo n.º 29
0
 def required_fields():
     return [
         EntityFormField("username", "username"),
         EntityFormField("password", "password")
     ]
Exemplo n.º 30
0
 def required_fields():
     return [
         EntityFormField("url", "url"),
         EntityFormField("description", "description")
     ]