File size: 323 Bytes
bf2bf0e
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
from typing import Optional

from pydantic import BaseModel, Field


class FetchPreviousChatsRequest(BaseModel):
    from_dt: Optional[str] = Field(None, description="fetching chats from a specific datetime.")


class SendNewChatRequest(BaseModel):
    text: str = Field(..., description="The text message sent to the AI")