---
sidebar:
  hidden: true
title: roboto.domain.comments.record
---
## Module Contents

### CommentEntityType

```python
class roboto.domain.comments.record.CommentEntityType
```

`from roboto import CommentEntityType`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/comments/record.py#L14-L38)

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.Action** = `'action'`: Actions that can be executed on the platform.
- **CommentEntityType.Collection** = `'collection'`: Collections of related datasets or resources.
- **CommentEntityType.Dataset** = `'dataset'`: Datasets containing uploaded data files.
- **CommentEntityType.File** = `'file'`: Individual files within datasets.
- **CommentEntityType.Invocation** = `'invocation'`: Executions of actions with specific inputs.
- **CommentEntityType.Trigger** = `'trigger'`: Automated triggers for action execution.

### CommentRecord

```python
class roboto.domain.comments.record.CommentRecord(/, **data: Any)
```

`from roboto import CommentRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/domain/comments/record.py#L41-L86)

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** (`Any`)

**Attributes**

- **CommentRecord.comment_id** (`str`): Unique identifier for this comment.

- **CommentRecord.comment_text** (`str`): The text content of the comment, may include @mention syntax.

- **CommentRecord.created** (`datetime.datetime`): 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.created_by** (`str`): User ID of the comment author.

- **CommentRecord.entity_id** (`str`): Unique identifier of the entity this comment is attached to.

- **CommentRecord.entity_type** (`CommentEntityType`): Type of entity this comment is attached to.

- **CommentRecord.mentions** (`list[str]`) = `None`: List of user IDs mentioned in this comment using @mention syntax.

- **CommentRecord.modified** (`datetime.datetime`): 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.

- **CommentRecord.modified_by** (`str`): User ID of the user who last modified this comment.

- **CommentRecord.org_id** (`str`): Organization ID that owns this comment (partition key).
