> ## 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.

# Failover Config • AI Agent SDK

> FailoverConfig: Configuration for failover behavior.

# FailoverConfig

> Defined in the [**failover**](../modules/failover) module.

<Badge color="blue">AI Agent</Badge>

Configuration for failover behavior.

Attributes:
max\_retries: Maximum retry attempts per request
retry\_delay: Base delay between retries (seconds)
exponential\_backoff: Whether to use exponential backoff
max\_retry\_delay: Maximum retry delay (seconds)
cooldown\_on\_rate\_limit: Cooldown duration for rate limits (seconds)
cooldown\_on\_error: Cooldown duration for errors (seconds)
rotate\_on\_success: Whether to rotate profiles on success

## Properties

<ResponseField name="max_retries" type="int">
  No description available.
</ResponseField>

<ResponseField name="retry_delay" type="float">
  No description available.
</ResponseField>

<ResponseField name="exponential_backoff" type="bool">
  No description available.
</ResponseField>

<ResponseField name="max_retry_delay" type="float">
  No description available.
</ResponseField>

<ResponseField name="cooldown_on_rate_limit" type="float">
  No description available.
</ResponseField>

<ResponseField name="cooldown_on_error" type="float">
  No description available.
</ResponseField>

<ResponseField name="rotate_on_success" type="bool">
  No description available.
</ResponseField>

<Accordion title="Internal & Generic Methods">
  * **to\_dict**: Convert to dictionary.
</Accordion>

## Source

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

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Configuration Overview" icon="gear" href="/docs/configuration/index" />

  <Card title="Agent Config" icon="robot" href="/docs/configuration/agent-config" />
</CardGroup>
