> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# ConversationRetry

> Class exported by @botmesh/core.

Defined in: [conversations/retry.ts:90](https://github.com/andresayac/botmesh/blob/main/packages/core/src/conversations/retry.ts#L90)

Control signal thrown by `c.retry()` inside a flow step (`flow().do()`, a `.choose()`
`then` action) when the retried wait belongs to an earlier step. The flow interpreter
catches it and replays the flow from that step; code after `c.retry()` in the step does
not run (like `c.end()` / `c.goto()`). If you wrap a step body in `try/catch`, rethrow
every [ConversationError](https://botmesh.afaya.com.co/api/core/classes/ConversationError.md).

## Extends

* [`ConversationError`](https://botmesh.afaya.com.co/api/core/classes/ConversationError)

## Constructors

### Constructor

```ts theme={null}
new ConversationRetry(
   prompt, 
   flow, 
   index, 
   attempts
): ConversationRetry;
```

Defined in: [conversations/retry.ts:97](https://github.com/andresayac/botmesh/blob/main/packages/core/src/conversations/retry.ts#L97)

#### Parameters

| Parameter | Type | Description |
| - | - | - |
| `prompt` | `string` \| `undefined` | Message sent instead of the step's prompt when it is re-run (undefined: re-send the prompt). |
| `flow` | `object` | Flow that owns the target step (internal). |
| `index` | `number` | Step index the flow rewinds to (internal). |
| `attempts` | `number` | Invalid attempts carried into the re-run wait (internal). |

#### Returns

`ConversationRetry`

#### Overrides

[`ConversationError`](https://botmesh.afaya.com.co/api/core/classes/ConversationError).[`constructor`](https://botmesh.afaya.com.co/api/core/classes/ConversationError#constructor)

## Properties

### prompt

```ts theme={null}
readonly prompt: string | undefined;
```

Defined in: [conversations/retry.ts:98](https://github.com/andresayac/botmesh/blob/main/packages/core/src/conversations/retry.ts#L98)

Message sent instead of the step's prompt when it is re-run (undefined: re-send the prompt).

***

### flow

```ts theme={null}
readonly flow: object;
```

Defined in: [conversations/retry.ts:99](https://github.com/andresayac/botmesh/blob/main/packages/core/src/conversations/retry.ts#L99)

Flow that owns the target step (internal).

***

### index

```ts theme={null}
readonly index: number;
```

Defined in: [conversations/retry.ts:100](https://github.com/andresayac/botmesh/blob/main/packages/core/src/conversations/retry.ts#L100)

Step index the flow rewinds to (internal).

***

### attempts

```ts theme={null}
readonly attempts: number;
```

Defined in: [conversations/retry.ts:101](https://github.com/andresayac/botmesh/blob/main/packages/core/src/conversations/retry.ts#L101)

Invalid attempts carried into the re-run wait (internal).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.