{"record":{"id":"4cdace1ab05fdef1","repo":"HKUDS/DeepTutor","slug":"llm-did-not-return-any-timeline-events","errorCode":null,"errorMessage":"LLM did not return any timeline events.","messagePattern":"LLM did not return any timeline events\\.","errorType":"exception","errorClass":"GenerationFailure","httpStatus":null,"severity":"error","filePath":"deeptutor/book/blocks/timeline.py","lineNumber":57,"sourceCode":"            temperature=0.4,\n            language=ctx.language,\n            expected_key=\"events\",\n        )\n        events_raw = data.get(\"events\") if isinstance(data, dict) else None\n        events: list[dict[str, str]] = []\n        if isinstance(events_raw, list):\n            for item in events_raw[:8]:\n                if not isinstance(item, dict):\n                    continue\n                events.append(\n                    {\n                        \"date\": str(item.get(\"date\") or \"\")[:80],\n                        \"title\": str(item.get(\"title\") or \"\")[:160],\n                        \"description\": str(item.get(\"description\") or \"\")[:600],\n                    }\n                )\n        if not events:\n            raise GenerationFailure(\"LLM did not return any timeline events.\")\n        return (\n            {\"events\": events},\n            [],\n            data.get(\"_metadata\") if isinstance(data.get(\"_metadata\"), dict) else {},\n        )\n\n\n__all__ = [\"TimelineGenerator\"]\n","sourceCodeStart":39,"sourceCodeEnd":66,"githubUrl":"https://github.com/HKUDS/DeepTutor/blob/3e82f130422a813cdd73c10b21a44e9325f5821a/deeptutor/book/blocks/timeline.py#L39-L66","documentation":"Error \"LLM did not return any timeline events.\" thrown in HKUDS/DeepTutor.","triggerScenarios":"Thrown at deeptutor/book/blocks/timeline.py:57 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"}