-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathorder_flower_intent.py
75 lines (52 loc) · 3.25 KB
/
order_flower_intent.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
import pylexo
from schematics import types
class Slots:
PickupTime = "PickupTime"
FlowerType = "FlowerType"
PickupDate = "PickupDate"
class SessionAttributes:
RequestorCity = "RequestorCity"
class SlotsProperty(pylexo.SlotsProperty):
PickupTime = types.StringType()
FlowerType = types.StringType()
PickupDate = types.StringType()
class SessionAttributesProperty(pylexo.SessionAttributesProperty):
RequestorCity = types.StringType()
class CurrentIntentProperty(pylexo.CurrentIntentProperty):
slots = types.ModelType(SlotsProperty, default=SlotsProperty())
""" :type : SlotsProperty """
class LexInputEvent(pylexo.LexInputEvent):
currentIntent = types.ModelType(CurrentIntentProperty, default=CurrentIntentProperty())
""" :type : CurrentIntentProperty """
sessionAttributes = types.ModelType(SessionAttributesProperty, default=SessionAttributesProperty())
""" :type : SessionAttributesProperty """
class CloseLexOutputResponse(pylexo.CloseLexOutputResponse):
sessionAttributes = types.ModelType(SessionAttributesProperty, default=SessionAttributesProperty())
""" :type : SessionAttributesProperty """
class ElicitIntentOutputResponse(pylexo.ElicitIntentOutputResponse):
sessionAttributes = types.ModelType(SessionAttributesProperty, default=SessionAttributesProperty())
""" :type : SessionAttributesProperty """
class ElicitSlotOutputResponse(pylexo.ElicitSlotOutputResponse):
class SubDialogActionSlotsProperty(pylexo.ElicitSlotOutputResponse.SubDialogActionSlotsProperty):
slots = types.ModelType(SlotsProperty, default=SlotsProperty())
""" :type : SlotsProperty """
dialogAction = types.ModelType(SubDialogActionSlotsProperty, default=SubDialogActionSlotsProperty())
""" :type : ElicitSlotOutputResponse.SubDialogActionSlotsProperty """
sessionAttributes = types.ModelType(SessionAttributesProperty, default=SessionAttributesProperty())
""" :type : SessionAttributesProperty """
class ConfirmIntentOutputResponse(pylexo.ConfirmIntentOutputResponse):
class SubDialogActionSlotsProperty(pylexo.ConfirmIntentOutputResponse.SubDialogActionSlotsProperty):
slots = types.ModelType(SlotsProperty, default=SlotsProperty())
""" :type : SlotsProperty """
dialogAction = types.ModelType(SubDialogActionSlotsProperty, default=SubDialogActionSlotsProperty())
""" :type : ConfirmIntentOutputResponse.SubDialogActionSlotsProperty """
sessionAttributes = types.ModelType(SessionAttributesProperty, default=SessionAttributesProperty())
""" :type : SessionAttributesProperty """
class DelegateIntentOutputResponse(pylexo.DelegateIntentOutputResponse):
class SubDialogActionSlotsProperty(pylexo.DelegateIntentOutputResponse.SubDialogActionSlotsProperty):
slots = types.ModelType(SlotsProperty, default=SlotsProperty())
""" :type : SlotsProperty """
dialogAction = types.ModelType(SubDialogActionSlotsProperty, default=SubDialogActionSlotsProperty())
""" :type : DelegateIntentOutputResponse.SubDialogActionSlotsProperty """
sessionAttributes = types.ModelType(SessionAttributesProperty, default=SessionAttributesProperty())
""" :type : SessionAttributesProperty """