{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An AI-generated analysis of this account's answers, written by the app on the user's explicit instruction. Analyses only exist when the user has enabled the feature and clicked generate; creating this record IS the act of publishing, and the generation UI must make clear that the result is public on the open network. Regeneration creates a new record; the app may delete superseded ones.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "lang": {
            "description": "Language the analysis was generated in.",
            "format": "language",
            "type": "string"
          },
          "model": {
            "description": "Identifier of the model that generated the analysis.",
            "maxLength": 100,
            "type": "string"
          },
          "sourceAnswerCount": {
            "description": "Number of answers the analysis was generated from, so staleness can be detected.",
            "minimum": 0,
            "type": "integer"
          },
          "text": {
            "description": "The analysis text. Supports Markdown.",
            "maxGraphemes": 10000,
            "maxLength": 100000,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "text",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "app.askeverything.actor.analysis",
  "lexicon": 1
}
