Spaces:
Sleeping
Sleeping
Download src/databases/models.py from ashishninehertz/ConvoBot: direct link, hf CLI and curl.
- Browser
- Download file 272 Bytes
-
https://huggingface.co/spaces/ashishninehertz/ConvoBot/resolve/main/src/databases/models.py
- Command line
-
hf download hf://spaces/ashishninehertz/ConvoBot/src/databases/models.py
-
curl -L -o models.py https://huggingface.co/spaces/ashishninehertz/ConvoBot/resolve/main/src/databases/models.py
272 Bytes
| from datetime import datetime | |
| from typing import Optional | |
| from pydantic import BaseModel | |
| class Conversation(BaseModel): | |
| session_id: str | |
| user_query: str | |
| bot_response: str | |
| timestamp: Optional[datetime] = datetime.utcnow() | |
| metadata: Optional[dict] = None |