> ## 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 Protocol • AI Agent SDK

> FailoverProtocol: Deprecated structural protocol for failover managers.

# FailoverProtocol

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

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

Deprecated structural protocol for failover managers.

Retained only for backward compatibility with code that imports the deep
path `praisonaiagents.llm.failover.FailoverProtocol` or uses it for
`isinstance` checks. `FailoverManager` already satisfies this shape.
Prefer the public `LLMFailoverProtocol` (exported from
`praisonaiagents.llm`) for new code.

## Methods

<CardGroup cols={2}>
  <Card title="get_next_profile()" icon="function" href="../functions/FailoverProtocol-get_next_profile">
    Get the next available profile.
  </Card>

  <Card title="mark_failure()" icon="function" href="../functions/FailoverProtocol-mark_failure">
    Mark a profile as failed.
  </Card>

  <Card title="mark_success()" icon="function" href="../functions/FailoverProtocol-mark_success">
    Mark a profile as successful.
  </Card>
</CardGroup>

## Source

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