{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mumo-chat/json-schema/mumo-chat-create-deliberation-request-schema.json",
  "title": "CreateDeliberationRequest",
  "description": "Wire (pre-parse) shape for `POST /api/deliberation`. Unrecognized keys are ignored, but `moderator_model` and `recap_session` are explicitly rejected with `400 invalid_request`.",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mumo-chat-openapi.yml#/components/schemas/CreateDeliberationRequest",
  "type": "object",
  "required": [
    "prompt"
  ],
  "additionalProperties": true,
  "properties": {
    "prompt": {
      "type": "string",
      "minLength": 1,
      "description": "The question or topic. Trimmed; must be non-empty."
    },
    "reference": {
      "type": "string",
      "description": "Optional spec, doc, or design injected as shared context beneath the prompt."
    },
    "models": {
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 1
      },
      "minItems": 2,
      "maxItems": 3,
      "description": "Explicit panel of 2–3 model IDs. Omit to let the platform curate one. Call `GET /api/models` to enumerate valid IDs."
    },
    "rounds": {
      "type": "integer",
      "minimum": 1,
      "maximum": 14,
      "description": "Accepted and fingerprinted. Remote-mode sessions are caller-driven — round 0 is committed here and every further round comes from `POST /api/sessions/{id}/rounds`."
    },
    "moderator_name": {
      "type": "string",
      "maxLength": 100,
      "description": "Display name for the steering identity. Surfaces in the published transcript."
    },
    "application": {
      "type": "string",
      "maxLength": 100,
      "description": "Display name of your client. Surfaces in the session info panel."
    },
    "improvement_consent": {
      "type": "boolean",
      "description": "Whether session data may be used for platform improvement. Session-level; omit to use the account's effective default. A session-level `false` narrows and excludes the session; `true` never widens beyond the account's own Platform Improvement choice."
    },
    "dataset_consent": {
      "type": "boolean",
      "description": "Whether session data may be included in Dataset Contribution — the second consent election, chosen per account. Session-level and narrowing-only, exactly like `improvement_consent`: omit to use the account's choice; `false` excludes the session; `true` never widens beyond the account's own choice, and an account that has not yet made the choice stays excluded (`reason: not_yet_chosen`)."
    },
    "mode": {
      "type": "string",
      "enum": [
        "remote"
      ],
      "description": "Session mode. `remote` (caller-driven) is the only accepted value; the autonomous AI-moderated mode was retired in 2026-05."
    },
    "register": {
      "type": "string",
      "enum": [
        "conversational",
        "agent"
      ],
      "deprecated": true,
      "description": "Deprecated and ignored for execution — the platform runs a single prompt environment for all sessions. Still accepted, and still part of the idempotency fingerprint, so existing callers' retries stay stable. Omit it in new integrations."
    },
    "web_search": {
      "type": "boolean",
      "default": true,
      "description": "Set `false` to skip web search entirely (no search gate, no source pack). Default `true` — the platform decides per-prompt whether to search. Only round 0 searches on this surface. Disable for prompts grounded purely in supplied reference material."
    },
    "takeaway": {
      "type": "boolean",
      "default": false,
      "description": "Opt round 0 in to a per-round Takeaway artifact (`rounds[].round_takeaway`) — a structured summary generated when the round completes. Bills at cost (0 bps markup)."
    }
  }
}