{"record":{"id":"e0a5d6b010f588f9","repo":"exo-explore/exo","slug":"chunk-error-message-e0a5d6","errorCode":null,"errorMessage":"{chunk.error_message}","messagePattern":"\\{chunk\\.error_message\\}","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"src/exo/api/main.py","lineNumber":812,"sourceCode":"        sampler = PowerSampler(get_node_system=lambda: self.state.node_system)\n        text_parts: list[str] = []\n        tool_calls: list[ToolCall] = []\n        model: ModelId | None = None\n        finish_reason: FinishReason | None = None\n\n        stats: GenerationStats | None = None\n\n        async with anyio.create_task_group() as tg:\n            tg.start_soon(sampler.run)\n\n            async for chunk in self._token_chunk_stream(command_id):\n                if isinstance(chunk, PrefillProgressChunk):\n                    continue\n\n                sampler.mark_prefill_done()\n\n                if chunk.finish_reason == \"error\":\n                    raise HTTPException(\n                        status_code=500,\n                        detail=chunk.error_message or \"Internal server error\",\n                    )\n\n                if model is None:\n                    model = chunk.model\n\n                if isinstance(chunk, TokenChunk):\n                    text_parts.append(chunk.text)\n\n                if isinstance(chunk, ToolCallChunk):\n                    tool_calls.extend(\n                        ToolCall(\n                            id=str(uuid4()),\n                            index=i,\n                            function=tool,\n                        )\n                        for i, tool in enumerate(chunk.tool_calls)","sourceCodeStart":794,"sourceCodeEnd":830,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/api/main.py#L794-L830","documentation":"Error \"{chunk.error_message}\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/api/main.py:812 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":"21a54c5ea0230a3bec1e1a786d200126c7e34ec6","analyzedAt":"2026-08-26T00:02:16.033Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}