{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/annsa-ai/json-schema/annsa-ai-feedback-batch-result-schema.json",
  "title": "FeedbackBatchResult",
  "description": "The outcome of a batch submission, item by item.",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/annsa-ai-openapi.json#/components/schemas/FeedbackBatchResult",
  "type": "object",
  "required": [
    "batch",
    "total_items",
    "successful",
    "failed"
  ],
  "properties": {
    "batch": {
      "type": "boolean",
      "const": true
    },
    "total_items": {
      "type": "integer"
    },
    "successful": {
      "type": "integer"
    },
    "queued": {
      "type": "integer",
      "description": "Held against a plan limit rather than dropped, and released when capacity returns."
    },
    "duplicates": {
      "type": "integer"
    },
    "failed": {
      "type": "integer"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "duplicates_list": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "performance": {
      "type": "object",
      "properties": {
        "total_time_seconds": {
          "type": "number"
        },
        "items_per_second": {
          "type": "number"
        }
      }
    }
  }
}