Message, MessageRole
MessageRole
A python enum representing the available roles for a message. Can be one of the following values:
user = "user"
assistant = "assistant"
system = "system"Message
Represents the message exchanged between the user and the assistant.
Attributes
role(MessageRole): The role of the message (user / assistant / system)content(str): The content of the message.id(str, optional): The id of the message. Defaults to a random uuid.created_at(str, optional): The timestamp of the message. Defaults to the current time with system's timezone.