# ai.syui.gpt.memory

> Published by [syui.syui.ai](https://lexicon.garden/identity/did:plc:vzsvtbtbnwn22xjqhcu3vd6y)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:vzsvtbtbnwn22xjqhcu3vd6y/ai.syui.gpt.memory)
- [Documentation](https://lexicon.garden/lexicon/did:plc:vzsvtbtbnwn22xjqhcu3vd6y/ai.syui.gpt.memory/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:vzsvtbtbnwn22xjqhcu3vd6y/ai.syui.gpt.memory/examples)

## Definitions

### `ai.syui.gpt.memory`

**Type**: `record`

AI memory snapshot. Each record is a versioned snapshot of accumulated knowledge.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | DID of the AI agent this memory belongs to. |
| `content` | `union` | Yes | Memory content. Supports markdown and other formats via $type. |
| `version` | `integer` | No | Monotonically increasing version number of this memory snapshot. |
| `createdAt` | `string` (datetime) | Yes | Timestamp when this memory snapshot was created. |

### `ai.syui.gpt.memory#markdown`

**Type**: `object`

Markdown content format.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `text` | `string` | Yes | Markdown text content. |

## Raw Schema

```json
{
  "id": "ai.syui.gpt.memory",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "did",
          "content",
          "createdAt"
        ],
        "properties": {
          "did": {
            "type": "string",
            "format": "did",
            "description": "DID of the AI agent this memory belongs to."
          },
          "content": {
            "refs": [
              "#markdown"
            ],
            "type": "union",
            "closed": false,
            "description": "Memory content. Supports markdown and other formats via $type."
          },
          "version": {
            "type": "integer",
            "description": "Monotonically increasing version number of this memory snapshot."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when this memory snapshot was created."
          }
        }
      },
      "description": "AI memory snapshot. Each record is a versioned snapshot of accumulated knowledge."
    },
    "markdown": {
      "type": "object",
      "required": [
        "text"
      ],
      "properties": {
        "text": {
          "type": "string",
          "maxLength": 1000000,
          "description": "Markdown text content.",
          "maxGraphemes": 100000
        }
      },
      "description": "Markdown content format."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
