Spaces:
Sleeping
Sleeping
File size: 464 Bytes
e0a73da |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from pydantic import BaseModel
from typing import List, Tuple, Optional
class SourceData(BaseModel):
human_message: str
sources: str
class DocumentAddResponse(BaseModel):
success: bool
message: Optional[str] = None
class InferResponse(BaseModel):
output: str
sources: Optional[List[str]] = []
class BotResponse(BaseModel):
history: List[Tuple[str, str]]
response_with_sources: str # Consolidated response with sources appended
|