Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
SorbonneUniversity
/
SorboBot
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
389b0ad
SorboBot
/
message.py
leo-bourrel
feat: split message class
be06203
over 1 year ago
raw
Copy download link
history
blame
Safe
195 Bytes
from
dataclasses
import
dataclass
from
typing
import
Literal
@dataclass
class
Message
:
"""Class for keeping track of a chat message."""
origin:
Literal
[
"human"
,
"ai"
]
message:
str