Spaces:
Sleeping

File size: 708 Bytes
2583351
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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