> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Retry Delay • AI Agent SDK

> get_retry_delay: Calculate retry delay for an attempt.

# get\_retry\_delay

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**FailoverManager**](../classes/FailoverManager) class in the [**failover**](../modules/failover) module.

Calculate retry delay for an attempt.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_retry_delay(attempt: int) -> float
```

## Parameters

<ParamField query="attempt" type="int" required={true}>
  Attempt number (0-indexed)
</ParamField>

### Returns

<ResponseField name="Returns" type="float">
  Delay in seconds
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/llm/failover.py#L376">
  `praisonaiagents/llm/failover.py` at line 376
</Card>
