File size: 9,423 Bytes
1e91476
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f3e0ba5
 
1e91476
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
API_TIMEOUT = 240

AI_PHRASES = [
    "I am an AI",
    "I'm an AI",
    "I am not human",
    "I'm not human",
    "I am a machine learning model",
    "I'm a machine learning model",
    "as an AI",
    "as a text-based assistant",
    "as a text based assistant",
]

SUPPORTED_LANGUAGES = [
    "en",
    "es"
]

TEMPLATE = {
    "EN_template": {
        "language": "en",
        "description": """The following is a conversation between you and a crisis counselor.
        {current_seed}
        You are able to reply with what the character should say. You are able to reply with your character's dialogue inside and nothing else. Do not write explanations.""",
    },
    "ES_template": {
        "language": "es",
        "description": """La siguiente es una conversacion entre tu y un consejero de crisis
        {current_seed}
        Puedes responder como lo haria tu personaje. Puedes responder como si fueras tu personaje y nada mas. No escribas explicaciones.""",
    },
}

SEED = "Your character, {texter_name}, {crisis} {risk} {personality} {coping_preference} {difficulty}"

SCENARIOS = {
    "full_convo": {
        "crisis": "default",
        "risk": "default",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "full_convo__seeded1": {
        "crisis": "bullying",
        "risk": "low",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "full_convo__seeded2": {
        "crisis": "parent_issues",
        "risk": "low",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "safety_assessment__seeded1": {
        "crisis": "bullying",
        "risk": "thoughts__noplan",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "safety_assessment__seeded2": {
        "crisis": "grief",
        "risk": "thoughts__noplan",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "full_convo__seeded3": {
        "crisis": "lgbt",
        "risk": "low",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "full_convo__seeded4": {
        "crisis": "relationship_issues",
        "risk": "low",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "full_convo__seeded5": {
        "crisis": "child_abuse",
        "risk": "low",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "full_convo__seeded6": {
        "crisis": "overdose",
        "risk": "low",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "default",
    },
    "full_convo__hard": {
        "crisis": "default",
        "risk": "default",
        "personality": "personality_closed",
        "coping_preference": "default",
        "difficulty": "non_default",
    },
    "full_convo__hard__seeded1": {
        "crisis": "bullying",
        "risk": "low",
        "personality": "personality_closed",
        "coping_preference": "default",
        "difficulty": "non_default",
    },
    "full_convo__hard__seeded2": {
        "crisis": "parent_issues",
        "risk": "low",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "non_default",
    },
    "full_convo__hard__seeded3": {
        "crisis": "lgbt",
        "risk": "low",
        "personality": "personality_closed",
        "coping_preference": "default",
        "difficulty": "non_default",
    },
    "full_convo__hard__seeded4": {
        "crisis": "relationship_issues",
        "risk": "low",
        "personality": "personality_open",
        "coping_preference": "default",
        "difficulty": "non_default",
    },
}

DEPREC_SCENARIO_MAPPING = {
    "GCT": {
        "crisis": "default",
        "risk": "default",
        "personality": "default",
        "coping_preference": "default",
    },
    "safety_planning": {
        "crisis": "default",
        "risk": "thoughts__noplan",
        "personality": "default",
        "coping_preference": "default",
    },
}

DEFAULT_NAMES = ["Olivia", "Kit", "Abby", "Tom", "Carolyne", "Jessiny"]

CRISES = {
    "default": {
        "description": [
            "is experiencing a mental health crisis.",
        ]
    },
    "bullying": {
        "description": [
            "is suffering from bullying at school.",
            "is suffering from bullying at college.",
        ]
    },
    "parent_issues": {
        "description": [
            "just had a huge fight with their parents.",
        ]
    },
    "grief": {
        "description": [
            "is grieving his wife who died exactly one year ago.",
            "is grieving her grandmother who died a couple of years ago.",
        ]
    },
    "lgbt": {
        "description": [
            "is struggling with coming out to their parents about being gay and fears rejection.",
            "is facing harassment at college for being transgender and feels isolated.",
        ]
    },
    "relationship_issues": {
        "description": [
            "is feeling hopeless after their significant other broke up with them unexpectedly.",
            "is feeling trapped in an emotionally abusive relationship.",
        ]
    },
    "child_abuse": {
        "description": [
            "is being physically abused by a parent and is scared to go home. Your last name is Davis but you won't tell it unless you are asked about it. Your address is 104 Elm St in Austin TX.",
            "is 15 years old and is feeling helpless after witnessing a sibling, Charlie, being abused by a parent. You live at 200 Independence Avenue, S.W. Washington. When asked about your full name or last name you will reveal that it is Smith.",
        ]
    },
    "overdose": {
        "description": [
            "is feeling scared after accidentally overdosing on prescription medication and doesn't know who to turn to.",
        ]
    },
}

PERSONALITIES = {
    "default": {"personality_label": "default", "description": [""]},
    "personality_open": {
        "personality_label": "open",
        "description": [
            "You are talkative, and you are open to talk with details about your problems.",
            "You express openly and detailed about what you're going through.",
            "You are an extrovert, you do not hesitate to share your feelings.",
            "You like to communicate a lot.",
        ],
    },
    "personality_closed": {
        "personality_label": "closed",
        "description": [
            "You are a shy person, it's hard for you to talk about your problems.",
            "You are introverted. It is difficult for you to be open about your feelings.",
            "You are timid. It's hard for you to trust others.",
            "You prefer to use few words.",
        ],
    },
}

COPING_PREFERENCES = {
    "with_coping": {
        "coping_defined": True,
        "description": [
            "When you are feeling down you enjoy listening to classical music. Your favorite composer is Beethoven.",
            "To calm down you like to draw animals in your sketchbook. You love panda bears.",
            "In dire situations to prefer to exercise. You like lifting heavy weights.",
            "When you're feeling stressed you enjoy playing videogames on your laptop. You really enjoy strategy games.",
        ],
    },
    "default": {"coping_defined": False, "description": [""]},
}

SUICIDE_PLANS = [
    " You are planning to shoot yourself with a gun.",
    " You are planning to hang yourself with a rope.",
    " You are planning to overdose with sleep pills.",
    " You are planning to cut your wrists open with a knife.",
]

RISKS = {
    "default": {
        "description": ["{plan}"],
        "plan": [""],
    },
    "low": {
        "description": [
            "Your character does not have suicidal thoughts.{plan}",
        ],
        "plan": [""],
    },
    "thoughts__noplan": {
        "description": [
            "Your character has suicidal thoughts.{plan}",
        ],
        "plan": [""],
    },
    "thoughts__plan": {
        "description": [
            "Your character has suicidal thoughts.{plan}",
        ],
        "plan": SUICIDE_PLANS,
    },
}

DIFFICULTIES = {
    "default": {"difficulty_label": "default", "description": [""]},
    "difficulty_distrustful": {
        "difficulty_label": "distrustful",
        "description": [
            #"You don't trust the counselor, you will eventually cooperate.",
            "You have a distrustful attitude towards the counselor.",
        ],
    },
    # "difficulty_stop_convo": {
    #     "difficulty_label": "stop_convo",
    #     "description": [
    #         "You are angry. You are likely to type 'STOP' to end the conversation when you are very upset. However you are willing to cooperate with the counselor",
    #     ],
    # },
}

SUBSEEDS = {
    "crisis": CRISES,
    "risk": RISKS,
    "personality": PERSONALITIES,
    "coping_preference": COPING_PREFERENCES,
    "difficulty": DIFFICULTIES,
}