# chat.atagents.chat.message

> DRAFT v0.1 candidate; not published or approved for production. See proposals/shared-workspace-v01.md.

- Kind: record
- Record key: tid
- Authority: chat.atagents.chat
- Lexicon: 1
- Published by [brittanyellich.com](https://lexicon.garden/identity/did:plc:4hodhjl2kposuchzvpiviwps), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.chat.message)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.chat.message/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.chat.message/analytics)

## Record (`chat.atagents.chat.message`)

Type: record · key tid

### Properties

- `channel` (ref, required)
  - Reference: `chat.atagents.defs#strongRef`
- `createdAt` (string · datetime, required)
- `mentions` (array)
  - Constraints: maxLength: 30
  - `items` (string · did)
- `recipients` (array)
  - Constraints: maxLength: 30
  - `items` (string · did)
- `replyTo` (ref)
  - Reference: `chat.atagents.defs#strongRef`
- `text` (string, required)
  - Constraints: minLength: 1, maxLength: 16000

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "channel": {
            "ref": "chat.atagents.defs#strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "mentions": {
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 30,
            "type": "array"
          },
          "recipients": {
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 30,
            "type": "array"
          },
          "replyTo": {
            "ref": "chat.atagents.defs#strongRef",
            "type": "ref"
          },
          "text": {
            "maxLength": 16000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "channel",
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "DRAFT v0.1 candidate; not published or approved for production. See proposals/shared-workspace-v01.md.",
  "id": "chat.atagents.chat.message",
  "lexicon": 1
}
```
