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

# Mark Failure • AI Agent SDK

> mark_failure: Mark a profile as failed.

# mark\_failure

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

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

Mark a profile as failed.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def mark_failure(profile: AuthProfile, error: str) -> None
```

## Parameters

<ParamField query="profile" type="AuthProfile" required={true}>
  No description available.
</ParamField>

<ParamField query="error" type="str" required={true}>
  No description available.
</ParamField>

## Source

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