{"record":{"id":"1b133f7a03ca6385","repo":"HKUDS/DeepTutor","slug":"reviewagent-repair-prompts-are-not-configured","errorCode":null,"errorMessage":"ReviewAgent repair prompts are not configured.","messagePattern":"ReviewAgent repair prompts are not configured\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"deeptutor/agents/visualize/agents/review_agent.py","lineNumber":48,"sourceCode":"\n    async def process(\n        self,\n        *,\n        user_input: str,\n        analysis: VisualizationAnalysis,\n        code: str,\n        error: str,\n    ) -> ReviewResult:\n        \"\"\"Targeted repair pass — this agent's single job.\n\n        Only invoked *after* the deterministic local validation has failed,\n        and handed the concrete error so the model fixes one specific defect\n        instead of re-judging everything (chat and Book share this path).\n        \"\"\"\n        system_prompt = self.get_prompt(\"repair_system\")\n        user_template = self.get_prompt(\"repair_user_template\")\n        if not system_prompt or not user_template:\n            raise ValueError(\"ReviewAgent repair prompts are not configured.\")\n\n        user_prompt = user_template.format(\n            user_input=user_input.strip(),\n            render_type=analysis.render_type,\n            error=error.strip() or \"(unspecified)\",\n            analysis_json=json.dumps(analysis.model_dump(), ensure_ascii=False, indent=2),\n            code=code,\n        )\n\n        chunks: list[str] = []\n        async for chunk in self.stream_llm(\n            user_prompt=user_prompt,\n            system_prompt=system_prompt,\n            response_format={\"type\": \"json_object\"},\n            stage=\"reviewing\",\n            trace_meta=build_trace_metadata(\n                call_id=new_call_id(\"viz-repair\"),\n                phase=\"reviewing\",","sourceCodeStart":30,"sourceCodeEnd":66,"githubUrl":"https://github.com/HKUDS/DeepTutor/blob/3e82f130422a813cdd73c10b21a44e9325f5821a/deeptutor/agents/visualize/agents/review_agent.py#L30-L66","documentation":"Error \"ReviewAgent repair prompts are not configured.\" thrown in HKUDS/DeepTutor.","triggerScenarios":"Thrown at deeptutor/agents/visualize/agents/review_agent.py:48 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":"3e82f130422a813cdd73c10b21a44e9325f5821a","analyzedAt":"2026-08-27T06:57:25.364Z","schemaVersion":2},"datasetVersion":"2026-08-27T08:17:20.692Z"}