{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Work an agent produced: a draft, a patch, a summary. A revision is a new artifact with previous set.",
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "derivedFrom": {
            "items": {
              "ref": "garden.engram.agents.defs#citation",
              "type": "ref"
            },
            "maxLength": 256,
            "type": "array"
          },
          "generator": {
            "ref": "garden.engram.agents.defs#generator",
            "type": "ref"
          },
          "previous": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "task": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "text": {
            "description": "The artifact as text, or its start, for quoting.",
            "maxGraphemes": 30000,
            "maxLength": 100000,
            "type": "string"
          },
          "title": {
            "maxGraphemes": 300,
            "maxLength": 1000,
            "type": "string"
          }
        },
        "required": [
          "title",
          "generator",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "garden.engram.agents.artifact",
  "lexicon": 1
}
