{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/neruva-io/json-schema/neruva-io-causal-add-worlds-request-schema.json",
  "title": "CausalAddWorldsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/neruva-io-hd-native-api-openapi.yml#/components/schemas/CausalAddWorldsRequest",
  "properties": {
    "n_vars": {
      "type": "integer",
      "minimum": 1.0,
      "title": "N Vars",
      "description": "Number of variables."
    },
    "vocab_per_var": {
      "items": {
        "type": "integer"
      },
      "type": "array",
      "title": "Vocab Per Var",
      "description": "Cardinality of each variable."
    },
    "worlds": {
      "items": {
        "items": {
          "type": "integer"
        },
        "type": "array"
      },
      "type": "array",
      "title": "Worlds",
      "description": "Integer-coded worlds, shape (N, n_vars)."
    },
    "seed": {
      "type": "integer",
      "title": "Seed",
      "description": "Determinism seed.",
      "default": 4401
    },
    "var_names": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Var Names",
      "description": "Text label for each variable. var_names[i] = label for var i. Populates scm_vars registry."
    }
  },
  "type": "object",
  "required": [
    "n_vars",
    "vocab_per_var",
    "worlds"
  ]
}