{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A view the chat's model wrote that HUD drew, remembered for the next answer of the same shape, in the person's repo in their chats' memory space (place.hud.chat keyed memory), keyed by the SHA-256 of its shape in hex.",
      "key": "any",
      "record": {
        "properties": {
          "savedAt": {
            "description": "When it was last drawn.",
            "format": "datetime",
            "type": "string"
          },
          "shape": {
            "description": "The shape of answer it draws, as a line: the tool, and what of its arguments names the shape.",
            "maxLength": 2000,
            "type": "string"
          },
          "uses": {
            "description": "How many answers drew it.",
            "minimum": 1,
            "type": "integer"
          },
          "view": {
            "description": "The view (place.hud.view), an object, where a record holds it; else in viewJson.",
            "type": "unknown"
          },
          "viewJson": {
            "description": "The view as JSON text, where it holds a number that is not an integer.",
            "maxLength": 65536,
            "type": "string"
          }
        },
        "required": [
          "shape",
          "savedAt",
          "uses"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "place.hud.chat.memory",
  "lexicon": 1
}
