-
Notifications
You must be signed in to change notification settings - Fork 3
/
models.py
56 lines (41 loc) · 1.11 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
from datetime import datetime
from typing import List, Optional
from pydantic import BaseModel
class Structured(BaseModel):
title: str
overview: str
emoji: str = ""
category: str = "other"
class ActionItem(BaseModel):
description: str
class Event(BaseModel):
title: str
startsAt: datetime
duration: int
description: Optional[str] = ""
created: bool = False
class MemoryPhoto(BaseModel):
base64: str
description: str
class PluginResponse(BaseModel):
pluginId: Optional[str] = None
content: str
class TranscriptSegment(BaseModel):
text: str
speaker: str
speaker_id: int
is_user: bool
start: float
end: float
class Memory(BaseModel):
createdAt: datetime
startedAt: Optional[datetime] = None
finishedAt: Optional[datetime] = None
transcript: str = ""
transcriptSegments: List[TranscriptSegment] = []
photos: Optional[List[MemoryPhoto]] = []
recordingFilePath: Optional[str] = None
recordingFileBase64: Optional[str] = None
structured: Structured
pluginsResponse: List[PluginResponse] = []
discarded: bool