{"record":{"id":"bb5d8837581c94ca","repo":"NousResearch/hermes-agent","slug":"image-generation-produced-no-output","errorCode":null,"errorMessage":"image generation produced no output","messagePattern":"image generation produced no output","errorType":"exception","errorClass":"GenerationError","httpStatus":null,"severity":"error","filePath":"agent/pet/generate/imagegen.py","lineNumber":250,"sourceCode":"            return None, f\"could not save generated image: {exc}\"\n\n    out: list[Path] = []\n    last_error = \"\"\n    allow_transparent = True\n    for _ in range(max(1, n)):\n        path, err = _run({\"background\": \"transparent\"} if allow_transparent else {})\n        # Model doesn't support the transparent flag → drop it for this and every\n        # remaining variant (no point re-probing a capability we just disproved).\n        if path is None and allow_transparent and _rejected_background(err):\n            allow_transparent = False\n            path, err = _run({})\n        if path is not None:\n            out.append(path)\n        else:\n            last_error = err\n\n    if not out:\n        raise GenerationError(last_error or \"image generation produced no output\")\n    return out\n","sourceCodeStart":232,"sourceCodeEnd":252,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/agent/pet/generate/imagegen.py#L232-L252","documentation":"Error \"image generation produced no output\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at agent/pet/generate/imagegen.py:250 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry generation; the backend returned nothing.","Check the image backend's API key, quota, and model availability.","Try a different prompt or backend."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}