{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/0latency-ai/json-schema/0latency-ai-criteria-request-schema.json",
  "title": "CriteriaRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/0latency-ai-openapi.json#/components/schemas/CriteriaRequest",
  "properties": {
    "agent_id": {
      "type": "string",
      "maxLength": 128,
      "minLength": 1,
      "title": "Agent Id"
    },
    "name": {
      "type": "string",
      "maxLength": 64,
      "minLength": 1,
      "title": "Name"
    },
    "weight": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Weight",
      "default": 0.5
    },
    "description": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Description"
    },
    "scoring_prompt": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Scoring Prompt"
    }
  },
  "type": "object",
  "required": [
    "agent_id",
    "name"
  ]
}