c-reviewer / storage.py
ml-visoft's picture
The answer and the feedback to the answer are stored in persistent storage.
376953f
raw
history blame
775 Bytes
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 = ""