{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/foresea-ink/json-schema/foresea-ink-shared-forecast-request-schema.json",
  "title": "SharedForecastRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/foresea-ink-system-api-openapi.yml#/components/schemas/SharedForecastRequest",
  "properties": {
    "question": {
      "type": "string",
      "maxLength": 800,
      "minLength": 1,
      "title": "Question"
    },
    "question_type": {
      "type": "string",
      "maxLength": 40,
      "title": "Question Type",
      "default": "binary"
    },
    "predicted_answer": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Predicted Answer"
    },
    "confidence": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Confidence"
    },
    "rationale": {
      "type": "string",
      "maxLength": 5000,
      "title": "Rationale",
      "default": ""
    },
    "model_probability": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Probability"
    },
    "market_probability": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Market Probability"
    },
    "market_platform": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 80
        },
        {
          "type": "null"
        }
      ],
      "title": "Market Platform"
    },
    "market_url": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Market Url"
    },
    "sources": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "maxItems": 12,
      "title": "Sources"
    },
    "model": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Model"
    },
    "variant": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 120
        },
        {
          "type": "null"
        }
      ],
      "title": "Variant"
    }
  },
  "type": "object",
  "required": [
    "question"
  ]
}