{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/electronics-architect-com/json-schema/electronics-architect-com-monte-carlo-response-schema.json",
  "title": "MonteCarloResponse",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/electronics-architect-com-openapi.json#/components/schemas/MonteCarloResponse",
  "type": "object",
  "properties": {
    "result": {
      "type": "object",
      "description": "trials[], summary, seed, trialCount, failedTrials — the same shape the editor's Monte Carlo panel reads.",
      "properties": {
        "trials": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "summary": {
          "type": "object"
        },
        "seed": {
          "type": "integer"
        },
        "trialCount": {
          "type": "integer"
        },
        "failedTrials": {
          "type": "integer"
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "trials": {
          "type": "integer"
        },
        "requestedTrials": {
          "type": "integer"
        },
        "clamped": {
          "type": "boolean"
        },
        "clampedBy": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "plan limit",
            "design complexity",
            "request time budget",
            null
          ]
        },
        "notice": {
          "type": "string",
          "description": "Present only when clampedBy is `request time budget`: what the design costs a trial, and the job endpoint that will run the full count."
        },
        "seed": {
          "type": "integer"
        },
        "elapsedMs": {
          "type": "number"
        },
        "metered": {
          "type": "boolean"
        },
        "feature": {
          "type": "string"
        }
      }
    }
  }
}