{"record":{"id":"372d8ca210b809d0","repo":"calesthio/OpenMontage","slug":"each-multi-prompt-item-must-be-an-object-with-prom","errorCode":null,"errorMessage":"each multi_prompt item must be an object with prompt","messagePattern":"each multi_prompt item must be an object with prompt","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"tools/video/kling_official_video.py","lineNumber":485,"sourceCode":"            payload[\"callback_url\"] = callback_url\n        if inputs.get(\"external_task_id\"):\n            payload[\"external_task_id\"] = inputs[\"external_task_id\"]\n\n    def _copy_multi_shot_fields(self, inputs: dict[str, Any], payload: dict[str, Any]) -> None:\n        if inputs.get(\"multi_shot\") is None and not inputs.get(\"multi_prompt\"):\n            return\n        payload[\"multi_shot\"] = bool(inputs.get(\"multi_shot\", True))\n        shot_type = str(inputs.get(\"shot_type\") or \"customize\")\n        if shot_type not in {\"customize\", \"intelligence\"}:\n            raise ValueError(\"shot_type must be one of: customize, intelligence\")\n        payload[\"shot_type\"] = shot_type\n        if inputs.get(\"multi_prompt\"):\n            if not isinstance(inputs[\"multi_prompt\"], list):\n                raise ValueError(\"multi_prompt must be a list\")\n            normalized: list[dict[str, Any]] = []\n            for item in inputs[\"multi_prompt\"]:\n                if not isinstance(item, dict) or not item.get(\"prompt\"):\n                    raise ValueError(\"each multi_prompt item must be an object with prompt\")\n                allowed = {\n                    key: item[key]\n                    for key in (\"prompt\", \"duration\", \"camera_control\", \"image_refs\", \"element_refs\")\n                    if key in item\n                }\n                normalized.append(allowed)\n            payload[\"multi_prompt\"] = normalized\n\n    def _normalize_omni_image_list(\n        self,\n        inputs: dict[str, Any],\n    ) -> tuple[list[dict[str, Any]], list[dict[str, Any]]]:\n        image_list: list[dict[str, Any]] = []\n        references_used: list[dict[str, Any]] = []\n\n        def add_image(value: str | None, *, kind: str, item_type: str | None = None) -> None:\n            if not value:\n                return","sourceCodeStart":467,"sourceCodeEnd":503,"githubUrl":"https://github.com/calesthio/OpenMontage/blob/95e1c3d0ab93482159818560f6a8c8e866b9139f/tools/video/kling_official_video.py#L467-L503","documentation":"Error \"each multi_prompt item must be an object with prompt\" thrown in calesthio/OpenMontage.","triggerScenarios":"A multi_prompt entry is not an object or lacks the required 'prompt' key.","commonSituations":"See trigger scenarios.","solutions":["Make every multi_prompt entry an object containing a non-empty 'prompt' key.","Validate the structure client-side before submitting, e.g. all(isinstance(p, dict) and p.get('prompt') for p in multi_prompt)."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95e1c3d0ab93482159818560f6a8c8e866b9139f","analyzedAt":"2026-08-15T06:31:20.014Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}