# RetryFeedback
Source: https://docs.maelstrom-ai.co/0.2/reference/engine/interfaces/retryfeedback/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: packages/engine/src/lib/planner/stage.ts:153

Why the previous attempt of a [withRetry](https://docs.maelstrom-ai.co/0.2/reference/engine/functions/withretry/)\-wrapped stage was rejected. Present only on retries.

## Type Parameters

### Candidate

`Candidate` _extends_ [`ReplylessCandidate`](https://docs.maelstrom-ai.co/0.2/reference/engine/type-aliases/replylesscandidate/) = [`PlannerCandidate`](https://docs.maelstrom-ai.co/0.2/reference/engine/type-aliases/plannercandidate/)

What the wrapped stage produces as a candidate: [PlannerCandidate](https://docs.maelstrom-ai.co/0.2/reference/engine/type-aliases/plannercandidate/) by default, or [ReplylessCandidate](https://docs.maelstrom-ai.co/0.2/reference/engine/type-aliases/replylesscandidate/) for a stage that may omit `userMessage` or ask for clarification.

## Properties

### attempt

> `readonly` **attempt**: `number`

Defined in: packages/engine/src/lib/planner/stage.ts:157

Retry number: 1 for the first retry.

* * *

### diagnostics

> `readonly` **diagnostics**: [`EngineDiagnostics`](https://docs.maelstrom-ai.co/0.2/reference/engine/interfaces/enginediagnostics/)

Defined in: packages/engine/src/lib/planner/stage.ts:161

Heal diagnostics for [previous](https://docs.maelstrom-ai.co/0.2/reference/engine/interfaces/retryfeedback/#previous), which recommended the retry.

* * *

### previous

> `readonly` **previous**: `Candidate`

Defined in: packages/engine/src/lib/planner/stage.ts:159

The candidate the previous attempt produced. Build a new candidate rather than editing it.
