Spaces:
Running
Running
Download app/schemas/session.py from SolusOps/study-buddy: direct link, hf CLI and curl.
- Browser
- Download file 302 Bytes
-
https://huggingface.co/spaces/SolusOps/study-buddy/resolve/main/app/schemas/session.py
- Command line
-
hf download hf://spaces/SolusOps/study-buddy/app/schemas/session.py
-
curl -L -o session.py https://huggingface.co/spaces/SolusOps/study-buddy/resolve/main/app/schemas/session.py
302 Bytes
| 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 | |