Spaces:
Sleeping
Sleeping
Download src/models.py from ashishninehertz/ConvoBot: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/ashishninehertz/ConvoBot/resolve/main/src/models.py
- Command line
-
hf download hf://spaces/ashishninehertz/ConvoBot/src/models.py
-
curl -L -o models.py https://huggingface.co/spaces/ashishninehertz/ConvoBot/resolve/main/src/models.py
466 Bytes
| from pydantic import BaseModel | |
| from typing import List, Optional, Dict, Any | |
| from datetime import datetime | |
| class SearchRequest(BaseModel): | |
| query: str | |
| limit: Optional[int] = 5 | |
| class SearchResponse(BaseModel): | |
| status: str | |
| results: Optional[List[Dict[str, Any]]] = None | |
| message: Optional[str] = None | |
| class ChatSession(BaseModel): | |
| session_id: str | |
| created_at: datetime | |
| history: List[Dict[str, Any]] = [] | |
| metadata: Dict[str, Any] = {} |