Spaces:
Sleeping

GameAI / explainers /ExplainerResult
j-js's picture
Rename explainers/explainer_result to explainers/ExplainerResult
663c091 verified
Raw History Blame
708 Bytes
# models.py
from dataclasses import dataclass
from typing import List, Optional
@dataclass
class ExplainerResult:
understood: bool
topic: Optional[str]
asks_for: Optional[str] # what is the target
givens: List[str] # extracted facts
constraints: List[str] # conditions / limits
relationships: List[str] # how things connect (key insight)
needed_concepts: List[str] # what math idea is required
trap_notes: List[str] # common mistakes
strategy_hint: Optional[str] # how you'd approach (no solving)
plain_english: Optional[str] # simplified restatement