{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/asap-cool/json-schema/asap-cool-kb-document-view-schema.json",
  "title": "KbDocumentView",
  "description": "Public projection of [`KbDocument`].",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/asap-cool-agents-api-openapi.yml#/components/schemas/KbDocumentView",
  "type": "object",
  "required": [
    "id",
    "agent_id",
    "title",
    "byte_size",
    "ingested_at"
  ],
  "properties": {
    "agent_id": {
      "type": "string",
      "format": "uuid",
      "description": "Owning agent."
    },
    "byte_size": {
      "type": "integer",
      "format": "int64",
      "description": "Byte size of `content_md`."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Stable identifier."
    },
    "ingested_at": {
      "type": "string",
      "description": "Ingestion timestamp, RFC 3339."
    },
    "source_url": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional source URL."
    },
    "title": {
      "type": "string",
      "description": "Title shown in admin UI."
    }
  }
}