{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modelcostcomparison-com/json-schema/modelcostcomparison-com-advisor-result-schema.json",
  "title": "AdvisorResult",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modelcostcomparison-com-openapi.json#/components/schemas/AdvisorResult",
  "type": "object",
  "required": [
    "refused",
    "reply",
    "sync"
  ],
  "properties": {
    "refused": {
      "type": "boolean"
    },
    "reply": {
      "type": "string"
    },
    "sync": {
      "oneOf": [
        {
          "type": "null"
        },
        {
          "type": "object",
          "required": [
            "workload",
            "modelIds",
            "aaSlugs",
            "providers",
            "summaryLabel"
          ],
          "properties": {
            "presetId": {
              "type": "string",
              "enum": [
                "support",
                "coding",
                "rag",
                "agent"
              ]
            },
            "workload": {
              "type": "object",
              "required": [
                "messagesPerMonth",
                "avgTokensPerMessage",
                "inputRatio",
                "cachedInputRatio"
              ],
              "properties": {
                "messagesPerMonth": {
                  "type": "number"
                },
                "avgTokensPerMessage": {
                  "type": "number"
                },
                "inputRatio": {
                  "type": "number"
                },
                "cachedInputRatio": {
                  "type": "number"
                }
              }
            },
            "modelIds": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "aaSlugs": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "providers": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "summaryLabel": {
              "type": "string"
            }
          }
        }
      ]
    }
  }
}