{
  "type": "object",
  "properties": {
    "secret": {
      "type": "string",
      "minLength": 16,
      "maxLength": 200,
      "description": "Your private memory secret (16+ chars). The same secret always opens the same memory; share it to share memory between agents. Keep it secret: anyone with it can read and write."
    },
    "key": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "pattern": "^[\\x20-\\x7e]+$",
      "description": "Key, e.g. \"user:42:preferences\"."
    },
    "value": {
      "description": "Any JSON value or text. Omit (or use delete: true) to delete the key."
    },
    "delete": {
      "description": "Delete this key.",
      "type": "boolean"
    },
    "ttl_seconds": {
      "description": "Expire after this many seconds (60 s to 1 year). Default: never.",
      "type": "integer",
      "minimum": 60,
      "maximum": 31536000
    }
  },
  "required": [
    "secret",
    "key"
  ],
  "additionalProperties": false
}