import dataclasses from datetime import datetime @dataclasses.dataclass(slots=True) class NavigationEvent(): version:int = 1 event_type:str = '(none)' event_date:str = datetime.isoformat(datetime.utcnow()) event_session_id:str = "" event_params:dict=dataclasses.field(default_factory=dict) @dataclasses.dataclass(slots=True) class CodeSubmittedEvent(): version:int = 1 submitted_date: str = datetime.isoformat(datetime.utcnow()) received_date: str = datetime.isoformat(datetime.utcnow()) event_session_id:str = "" db_question_evaluation_id:int = 0 code_to_eval:str = "" evaluation_engine:str = "chatGPT" prompt_version:int = 1 evaluation_response:str = "" has_feedback:bool = False feedback_date:str = ""