mirror of
https://github.com/agentscope-ai/ReMe.git
synced 2026-09-06 08:16:00 +00:00
11 lines
414 B
Python
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")
|