{"record":{"id":"82e8e40a328ea15e","repo":"tensorflow/models","slug":"prompts-prompt-name-r-must-be-a-mapping","errorCode":null,"errorMessage":"prompts.{prompt_name!r} must be a mapping.","messagePattern":"prompts\\.(.+?) must be a mapping\\.","errorType":"exception","errorClass":"ConfigError","httpStatus":null,"severity":"error","filePath":"official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py","lineNumber":592,"sourceCode":"\n  Returns:\n      A dict mapping prompt name to :class:`PromptConfig`.\n\n  Raises:\n      ConfigError: If the mapping is empty, malformed, or any prompt block\n          fails validation.\n  \"\"\"\n  if not isinstance(raw_prompts, dict) or not raw_prompts:\n    raise ConfigError(\"prompts must be a non-empty mapping.\")\n\n  validated = {}\n  for prompt_name, raw_block in raw_prompts.items():\n    if not isinstance(prompt_name, str) or not prompt_name:\n      raise ConfigError(\n          f\"Prompt name must be a non-empty string, got {prompt_name!r}.\"\n      )\n    if not isinstance(raw_block, dict):\n      raise ConfigError(f\"prompts.{prompt_name!r} must be a mapping.\")\n    _require_keys(\n        raw_block,\n        (\"detection\", \"augmentations\"),\n        f\"prompts.{prompt_name!r}\",\n    )\n    validated[prompt_name] = PromptConfig(\n        detection=_validate_detection(raw_block[\"detection\"], prompt_name),\n        augmentations=_validate_augmentations(\n            raw_block[\"augmentations\"], prompt_name\n        ),\n    )\n  return validated\n\n\ndef _validate_cuda_visible_devices(raw_value: Any) -> str:\n  \"\"\"Validates cuda_visible_devices, allowing ints and coercing to string.\n\n  Args:","sourceCodeStart":574,"sourceCodeEnd":610,"githubUrl":"https://github.com/tensorflow/models/blob/e006f5f0d534913e49c1f1dae87364039fa607e2/official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py#L574-L610","documentation":"Error \"prompts.{prompt_name!r} must be a mapping.\" thrown in tensorflow/models.","triggerScenarios":"Thrown at official/projects/waste_identification_ml/data_generation/auto_labeler_pipeline/config_loader.py:592 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e006f5f0d534913e49c1f1dae87364039fa607e2","analyzedAt":"2026-08-24T14:09:15.576Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}