# at.ellich.agent.message

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

✓ This is the authoritative definition for this NSID.

## Links

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

## Definitions

### `at.ellich.agent.message`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `content` | `string` | Yes |  |
| `contentFormat` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `previous` | `array` | No |  |
| `role` | `string` | Yes | Transcript label only. Never grants instruction priority or tool authority; consumers must authenticate and authorize the repository author independently. |
| `session` | `string` (at-uri) | Yes |  |
| `sourceKey` | `string` | No |  |

### `at.ellich.agent.message#strongRef`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "maxLength": 131072,
            "type": "string"
          },
          "contentFormat": {
            "enum": [
              "text/plain",
              "text/markdown",
              "application/json"
            ],
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "previous": {
            "items": {
              "ref": "lex:at.ellich.agent.message#strongRef",
              "type": "ref"
            },
            "maxLength": 100,
            "type": "array"
          },
          "role": {
            "description": "Transcript label only. Never grants instruction priority or tool authority; consumers must authenticate and authorize the repository author independently.",
            "enum": [
              "user",
              "assistant",
              "system",
              "tool"
            ],
            "maxLength": 128,
            "type": "string"
          },
          "session": {
            "format": "at-uri",
            "type": "string"
          },
          "sourceKey": {
            "maxLength": 1024,
            "type": "string"
          }
        },
        "required": [
          "session",
          "role",
          "content",
          "contentFormat",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "strongRef": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid"
      ],
      "type": "object"
    }
  },
  "id": "at.ellich.agent.message",
  "lexicon": 1
}
```
