{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://adcn.local/schemas/adcn-job.schema.json",
  "title": "ADCN 標準化任務格式（草案）",
  "description": "第二階段 MVP 已實作的客戶送件格式。僅支援文字向量化。",
  "type": "object",
  "additionalProperties": false,
  "required": ["texts"],
  "properties": {
    "texts": {
      "type": "array",
      "minItems": 1,
      "maxItems": 1000,
      "description": "要計算向量的文字，一段一筆。",
      "items": {
        "type": "string",
        "minLength": 1,
        "maxLength": 1000
      }
    },
    "model": {
      "type": "string",
      "default": "Xenova/all-MiniLM-L6-v2",
      "description": "目前已開放的模型只有 Xenova/all-MiniLM-L6-v2。多語模型尚未開發。"
    }
  },
  "examples": [
    {
      "texts": ["The cat sits on the mat."],
      "model": "Xenova/all-MiniLM-L6-v2"
    }
  ]
}
