class CPCAnswer(BaseModel):
answer: Literal["A", "B", "C", "D"] # Required answer letter
confidence: float # 0.0 to 1.0 confidence score
reasoning: str # Detailed explanation
code_found: str # Specific medical code identified
class QuestionAnalysis(BaseModel):
question_type: Literal[...] # Question classification
key_terms: List[str] # Extracted medical terms
requires_web_search: bool # Search requirement flag
Infrastructure & Environment