# chat.atagents.chat.message

> Published by [brittanyellich.com](https://lexicon.garden/identity/did:plc:4hodhjl2kposuchzvpiviwps)

✓ This is the authoritative definition for this NSID.

## Description

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

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.chat.message)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.chat.message/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.chat.message/examples)

## Definitions

### `chat.atagents.chat.message`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `ref` → `chat.atagents.defs#strongRef` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `mentions` | `array` | No |  |
| `recipients` | `array` | No |  |
| `replyTo` | `ref` → `chat.atagents.defs#strongRef` | No |  |
| `text` | `string` | Yes |  |

## Raw 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
}
```
