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.", ], }, # "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, }