示例#1
0
 def required_fields():
     return [
         EntityFormField(
             "duration",
             "fund_achievement_duration"),  # entity_name, slot_name
         EntityFormField("topk", "fund_achievement_topk"),
     ]
示例#2
0
 def required_fields():
     return [
         EntityFormField("purpose", "purpose"),
         EntityFormField("purpose_sub", "purpose_sub"),
         EntityFormField("recoil", "recoil"),
         EntityFormField("category", "category"),
         EntityFormField("manufacturer", "manufacturer")
     ]
示例#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")
     ]
示例#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 []
示例#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 []
示例#6
0
 def required_fields():
     return [EntityFormField("application", "application")]
示例#7
0
 def required_fields():
     return [
         EntityFormField("appname", "appname"),
         EntityFormField("environment", "environment")
     ]
示例#8
0
 def required_fields():
     return [EntityFormField("servicename", "servicename")]
示例#9
0
 def required_fields():
     return [
         EntityFormField("summary", "summary"),
         EntityFormField("description", "description")
     ]
示例#10
0
 def required_fields():
     return [EntityFormField("building", "building")]
示例#11
0
 def required_fields():
     return [EntityFormField("codecoverageapp", "codecoverageapp")]
示例#12
0
 def required_fields():
     return [
         EntityFormField("gender", "gender"),
         EntityFormField("age", "age"),
     ]
示例#13
0
 def required_fields():
     return [EntityFormField("age", "age")]
示例#14
0
 def required_fields():
     return [EntityFormField("GPE", "GPE"),
         EntityFormField("skill", "skill"),
     ]
示例#15
0
 def required_fields():
     return [
         EntityFormField("email", "new_email"),
         BooleanFormField("new_email_confirmed", "conversation_confirm",
                          "conversation_cancel")
     ]
示例#16
0
 def required_fields():
     return [
         EntityFormField("disease", "disease"),
         EntityFormField("time", "time"),
     ]
示例#17
0
 def required_fields():
     return [EntityFormField("word", "word")]
示例#18
0
 def required_fields():
     return [
         EntityFormField("car_model", "car_model_slot"),
         FreeTextFormField("zipcode_slot"),
         BooleanFormField("has_driver_license_slot", "affirm", "deny"),
     ]
示例#19
0
 def required_fields():
     return [
         EntityFormField("location", "location"),
         EntityFormField("cuisine", "cuisine"),
         EntityFormField("price", "price")
     ]
示例#20
0
    def required_fields():
        return [
			EntityFormField("location", "location"),
            EntityFormField("cuisine", "cuisine"),
            EntityFormField("budget", "budget"),
        ]
示例#21
0
 def required_fields():
     return [EntityFormField("JIRAID", "JIRAID")]
示例#22
0
 def __init__(self, entity_name, slot_name):
     EntityFormField.__init__(self, entity_name, slot_name)
示例#23
0
 def required_fields():
     return [
         EntityFormField("cuisine", "cuisine"),
         EntityFormField("number", "people")
     ]
示例#24
0
文件: bot.py 项目: xwj0813/WeatherBot
 def required_fields():
     return [
         EntityFormField("address", "address"),
         EntityFormField("date-time", "date-time"),
     ]
示例#25
0
 def required_fields():
     return [EntityFormField("jenkinsjob", "jenkinsjob")]
示例#26
0
 def required_fields():
     return [
         EntityFormField("cuisine", "cuisine"),
         EntityFormField("number", "people"),
         BooleanFormField("vegetarian", "affirm", "deny")
     ]
示例#27
0
 def required_fields():
     return [
         #EntityFormField(<Entity>,<Slot>),
         EntityFormField("phone", "phone"),
         EntityFormField("company", "company"),
     ]
示例#28
0
 def required_fields():
     return [
         EntityFormField("GPE", "GPE_origin"),
         EntityFormField("GPE", "GPE_destination")
     ]
示例#29
0
 def required_fields():
     return [
         EntityFormField("username", "username"),
         EntityFormField("password", "password")
     ]
示例#30
0
 def required_fields():
     return [
         EntityFormField("url", "url"),
         EntityFormField("description", "description")
     ]