File size: 4,571 Bytes
caa0e13
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
#@title flows.py
GENERAL_STATE_FLOWS = [
        "homework",
        "homework_with_question",
        "recommend",
        "recommend_with_topic",
        "assess_knowledge",
        "assess_knowledge_with_topic",
        "explain_drill",
        "exercise",
        "exercise_with_topic",
        "personal",
        "finish_learning",
        "provide_topic",
        "provide_subject",
        "provide_subtopic",
        "provide_concept",
        "general_intent",
        "explain_answer",
        "explain_answer_with_topic",
        "back_to_study",
        "summarize",
        "unknown"
    ]

UNDERSTAND_STATE_FLOWS = [
        "homework",
        "homework_with_question",
        "provide_topic",
        "provide_subject",
        "explain_answer",
        "explain_answer_with_topic",
        "core_explanation_repeat",
        "core_explanation_exercise",
        "core_explanation_exercise_with_topic",
        "core_explanation_video",
        "core_explanation_video_with_topic",
        "core_explanation_protips",
        "negative_respond",
        "positive_respond",
        "assess_knowledge",
        "assess_knowledge_with_topic",
        "recommend",
        "recommend_with_topic",
        "exercise",
        "exercise_with_topic",
        "personal",
        "unknown",
        "general_intent"
    ]

HOMEWORK_STATE_FLOWS = ["homework_with_question",
        "explain_answer",
        "explain_answer_with_topic",
        "provide_topic",
        "provide_subject",
        "homework",
        "recommend",
        "recommend_with_topic",
        "assess_knowledge",
        "assess_knowledge_with_topic",
        "exercise",
        "exercise_with_topic",
        "exercise_multiple_question",
        "exercise_multiple_question_with_topic",
        "similar_question",
        "personal",
        "finish_learning",
        "unknown",
        "back_to_study",
]

RECOMMEND_MATERIAL_FLOWS = [
        "homework",
        "homework_with_question",
        "understand",
        "understand_with_topic",
        "recommend",
        "recommend_with_topic",
        "provide_topic",
        "provide_subject",
        "explain_answer",
        "assess_knowledge",
        "assess_knowledge_with_topic",
        "exercise",
        "exercise_with_topic",
        "exercise_multiple_question",
        "exercise_multiple_question_with_topic",
        "personal",
        "finish_learning",
        "go_back_to_general",
        "unknown"
]

PERSONAL_STATE_FLOWS = [
        "homework",
        "homework_with_question",
        "recommend",
        "recommend_with_topic",
        "assess_knowledge",
        "assess_knowledge_with_topic",
        "personal",
        "exercise",
        "exercise_with_topic",
        "explain_answer",
        "explain_answer_with_topic",
        "provide_topic",
        "provide_subject",
        "back_to_study",
        "finish_learning",
        "unknown"
]

EXERCISE_STATE_FLOWS = [
        "exercise",
        "exercise_with_image",
        "exercise_with_topic",
        "exercise_multiple_question",
        "exercise_multiple_question_with_topic",
        "provide_topic",
        "provide_subject",
        "explain_answer",
        "explain_answer_with_topic",
        "provide_answer",
        "similar_question",
        "assess_knowledge",
        "assess_knowledge_with_topic",
        "homework",
        "homework_with_question",
        "recommend",
        "recommend_with_topic",
        "finish_learning",
        "personal",
        "back_to_study",
        "unknown"
]

ASSESS_KNOWLEDGE_STATE_FLOWS = [
        "assess_knowledge",
        "assess_knowledge_with_topic",
        "assess_knowledge_answer",
        "explain_drill",
        "provide_topic",
        "provide_subject",
        "diagnosis_result",
        "explain_answer",
        "explain_answer_with_topic",
        "homework",
        "homework_with_question",
        "recommend",
        "recommend_with_topic",
        "exercise",
        "exercise_with_topic",
        "exercise_multiple_question",
        "exercise_multiple_question_with_topic",
        "general_intent",
        "finish_learning",
        "personal",
        "back_to_study",
        "unknown"
]

STATE_FLOWS_MAP = {
    "GeneralState":GENERAL_STATE_FLOWS,
    "HomeworkState":HOMEWORK_STATE_FLOWS,
    "ExerciseState":EXERCISE_STATE_FLOWS,
    "UnderstandState":UNDERSTAND_STATE_FLOWS,
    "RecommendMaterialState":RECOMMEND_MATERIAL_FLOWS,
    "PersonalState":PERSONAL_STATE_FLOWS,
    "AssessKnowledgeState":ASSESS_KNOWLEDGE_STATE_FLOWS,
}