Spaces:
Sleeping
Sleeping
File size: 297 Bytes
be06203 4dd424d b8c8744 be06203 b8c8744 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
from dataclasses import dataclass
from typing import List, Literal, Optional
from langchain.schema import Document
@dataclass
class Message:
"""Class for keeping track of a chat message."""
origin: Literal["human", "ai"]
message: str
documents: Optional[List[Document]] = None
|