File size: 302 Bytes
2e818da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from enum import Enum
from typing import Optional
from pydantic import BaseModel


class Intention(str, Enum):
    LEARN = "learn"
    REVIEW = "review"
    DRAFT = "draft"


class Session(BaseModel):
    project_id: str
    topic: str
    intention: Intention
    active_node_id: Optional[str] = None