# chat.atagents.agent.document

- Kind: record
- Record key: tid
- Authority: agent.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.agent.document)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.agent.document/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.agent.document/analytics)

## Record (`chat.atagents.agent.document`)

Type: record · key tid

### Properties

- `content` (string, required)
  - Constraints: maxLength: 131072
- `createdAt` (string · datetime, required)
- `format` (string, required)
  - Constraints: enum: text/markdown | text/plain
- `sourceKey` (string)
  - Constraints: maxLength: 1024
- `title` (string)
  - Constraints: maxLength: 1024
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "maxLength": 131072,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "format": {
            "enum": [
              "text/markdown",
              "text/plain"
            ],
            "type": "string"
          },
          "sourceKey": {
            "maxLength": 1024,
            "type": "string"
          },
          "title": {
            "maxLength": 1024,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "content",
          "format",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "chat.atagents.agent.document",
  "lexicon": 1
}
```
