Spaces:
Sleeping
Sleeping
Download app/schemas/journal.py from SolusOps/study-buddy: direct link, hf CLI and curl.
- Browser
- Download file 516 Bytes
-
https://huggingface.co/spaces/SolusOps/study-buddy/resolve/main/app/schemas/journal.py
- Command line
-
hf download hf://spaces/SolusOps/study-buddy/app/schemas/journal.py
-
curl -L -o journal.py https://huggingface.co/spaces/SolusOps/study-buddy/resolve/main/app/schemas/journal.py
516 Bytes
| import time | |
| from enum import Enum | |
| from typing import Any, Dict | |
| from pydantic import BaseModel, Field | |
| class JournalEventType(str, Enum): | |
| CHAT_TURN = "chat_turn" | |
| FLASHCARD_GRADE = "flashcard_grade" | |
| QUIZ_SUBMIT = "quiz_submit" | |
| FEYNMAN_TURN = "feynman_turn" | |
| NODE_OPENED = "node_opened" | |
| DEEP_DIVE = "deep_dive" | |
| class JournalEntry(BaseModel): | |
| project_id: str | |
| node_id: str | |
| event_type: JournalEventType | |
| data: Dict[str, Any] | |
| timestamp: float = Field(default_factory=time.time) | |