roboto.domain.comments.record
Module Contents
CommentEntityType
Bases: roboto.compat.StrEnum
Enumeration of Roboto platform entities that support comments.
This enum defines the types of resources in the Roboto platform that can have comments attached to them. Each value corresponds to a specific domain entity type.
Attributes
CommentEntityType.Collection
Collections of related datasets or resources.
CommentRecord
Bases: pydantic.BaseModel
A wire-transmissible representation of a comment.
This model represents the complete data structure of a comment as stored and transmitted by the Roboto platform API. It includes all metadata about the comment including creation/modification timestamps, user mentions, and the associated entity information.
Parameters
data AnyAttributes
CommentRecord.comment_text
The text content of the comment, may include @mention syntax.
CommentRecord.created
Timestamp when the comment was created.
Stored as datetime.datetime in Python but serialized as ISO 8601 string in UTC when transmitted over the API.
CommentRecord.mentions
List of user IDs mentioned in this comment using @mention syntax.
CommentRecord.modified
Timestamp when the comment was last modified.
Stored as datetime.datetime in Python but serialized as ISO 8601 string in UTC when transmitted over the API.