forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.py
More file actions
54 lines (42 loc) · 1.86 KB
/
Copy pathmodels.py
File metadata and controls
54 lines (42 loc) · 1.86 KB
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
from typing import List
from pydantic import BaseModel, Field
from omi_plugin_sdk.models import (
ActionItem,
Conversation,
ConversationPhoto,
EndpointResponse,
Event,
ExternalIntegrationConversationSource,
ExternalIntegrationCreateConversation,
Geolocation,
PluginResult,
Structured,
TranscriptSegment,
)
class RealtimePluginRequest(BaseModel):
session_id: str
segments: List[TranscriptSegment]
class ProactiveNotificationContextFitlersResponse(BaseModel):
people: List[str] = Field(description="A list of people. ", default=[])
entities: List[str] = Field(description="A list of entity. ", default=[])
topics: List[str] = Field(description="A list of topic. ", default=[])
class ProactiveNotificationContextResponse(BaseModel):
question: str = Field(description="A question to query the embeded vector database.", default='')
filters: ProactiveNotificationContextFitlersResponse = Field(
description="Filter options to query the embeded vector database. ", default=None
)
class ProactiveNotificationResponse(BaseModel):
prompt: str = Field(
description="A prompt or a template with the parameters such as {{user_name}} {{user_facts}}.", default=''
)
params: List[str] = Field(
description="A list of string that match with proactive notification scopes. ", default=[]
)
context: ProactiveNotificationContextResponse = Field(
description="An object to guide the system in retrieving the users context", default=None
)
class ProactiveNotificationEndpointResponse(BaseModel):
message: str = Field(description="A short message to be sent as notification to the user, if needed.", default='')
notification: ProactiveNotificationResponse = Field(
description="An object to guide the system in generating the proactive notification", default=None
)