ops-checklist-agent / app /models /question.py
oshul's picture
SYNC FIX
96b1f03
Raw History Blame Contribute Delete
431 Bytes
"""Question and Answer data models."""
from pydantic import BaseModel
from typing import Optional
class Question(BaseModel):
"""A single question for the user."""
id: str
text: str
mock_answer: Optional[str] = None
class Answer(BaseModel):
"""A user's confirmed answer to a question."""
question_id: str
question_text: str
audio_transcript: str
confirmed: bool = True
round_number: int