Closed hoanghm closed 2 months ago
get_user_by_id(user_id: str)
method that will return everything about an user as a dict
given their idadd_mission_to_db(missions: dict, user_id:str)
method that will:
Whenever new missions are generated, past/existing missions already assigned to a user will also be included in the prompt to encourage the Gemini API to generate missions different than those already generated.
generate_new_missions
query the information for these users from Cloud Firestore.User
table andMission
table (so that there is at least one user who has had some missions in the past, and we shouldn't generate the same one for "ongoing" + avoid generate very similar one for "weekly")