NousResearch/hermes-agent · error

generation produced no drafts

Error message

generation produced no drafts

What it means

Error "generation produced no drafts" thrown in NousResearch/hermes-agent.

Source

Thrown at apps/desktop/src/store/pet-generate.ts:425

      'pet.generate',
      {
        prompt,
        style: options.style ?? 'auto',
        count: options.count ?? 4,
        ...(referenceImage ? { referenceImage } : {}),
        ...($petGenProvider.get() ? { provider: $petGenProvider.get() } : {})
      },
      GENERATE_TIMEOUT_MS,
      controller.signal
    )

    // Stopped (or superseded by a newer round) while the RPC was in flight.
    if (!gen.isCurrent(runId)) {
      return false
    }

    if (!result?.ok || !result.drafts?.length) {
      throw new Error('generation produced no drafts')
    }

    $petGenToken.set(result.token)
    // Keep a concept for the hatch row prompts even on an image-only generate.
    $petGenPrompt.set(prompt || 'a custom pet')
    $petGenDrafts.set(result.drafts)
    $petGenSelected.set(result.drafts[0]?.index ?? 0)
    $petGenStatus.set('ready')
    notifyPetGenDone('Pet drafts ready', 'Your pet looks finished — pick one to hatch.', 'success')

    return true
  } catch (e) {
    if (!gen.isCurrent(runId)) {
      return false
    }

    if (isMissingMethod(e)) {
      $petGenStatus.set('stale')

View on GitHub (pinned to c896c09c42)

Solutions

  1. Retry generation; the image backend returned no drafts.
  2. Check the image-generation provider configuration and API key in `hermes tools`.
  3. Simplify or change the prompt and reference image, then regenerate.

When it happens

Trigger: Thrown at apps/desktop/src/store/pet-generate.ts:425 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of NousResearch/hermes-agent@c896c09c42 (2026-08-14). Data as JSON: /api/errors/8537810b6409141e. Report an issue: GitHub.