ReMe/memory_scope/scheme/message.py
2024-06-26 10:07:45 +08:00

11 lines
414 B
Python

from pydantic import Field, BaseModel
class Message(BaseModel):
role: str = Field(..., description="The role of the message sender (user, assistant, system)")
content: str = Field(..., description="The body of the message")
time_created: int = Field(..., description="Timestamp when the message was created")
memorized: bool = Field(False, description="indicate whether message is memorized")