# Interface WithRetryOptions

Options for withRetry function.

interface WithRetryOptions {
config?: Partial<RetryConfig>;
isRetryable?: (error: unknown) => boolean;
onRetry?: (info: RetryAttemptInfo) => void;
}

- Defined in packages/nexus-agents/src/adapters/retry.ts:288

##### Index

### Properties

config?
isRetryable?
onRetry?

## Properties

### `Optional` `Readonly` config

config?: Partial<RetryConfig>

Retry configuration. Defaults to DEFAULT_RETRY_CONFIG.

- Defined in packages/nexus-agents/src/adapters/retry.ts:290

### `Optional` `Readonly` isRetryable

isRetryable?: (error: unknown) => boolean

Custom predicate to determine if an error is retryable. Defaults to isRetryableError.

- Defined in packages/nexus-agents/src/adapters/retry.ts:292

### `Optional` `Readonly` onRetry

onRetry?: (info: RetryAttemptInfo) => void

Callback invoked before each retry attempt. Useful for logging.

- Defined in packages/nexus-agents/src/adapters/retry.ts:294