mirror of
https://github.com/ijaric/voice_assistant.git
synced 2025-05-24 14:33:26 +00:00
27 lines
442 B
Python
27 lines
442 B
Python
import uuid
|
|
|
|
import pydantic
|
|
|
|
|
|
class RequestLastSessionId(pydantic.BaseModel):
|
|
"""Request for a new session ID."""
|
|
|
|
channel: str
|
|
user_id: str
|
|
minutes_ago: int
|
|
|
|
|
|
class ChatMessage(pydantic.BaseModel):
|
|
"""A chat message."""
|
|
|
|
session_id: uuid.UUID
|
|
user_id: str
|
|
channel: str
|
|
message: dict[str, str]
|
|
|
|
|
|
class RequestChatHistory(pydantic.BaseModel):
|
|
"""Request for chat history."""
|
|
|
|
session_id: uuid.UUID
|