Spaces:
Sleeping
Sleeping
File size: 842 Bytes
fb3f5ce 376953f 86a3482 376953f |
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 |
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 = ""
feedback_userdata:dict=dataclasses.field(default_factory=dict)
|