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

Method

> This is a method of the [**FailoverProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/FailoverProtocol.md) class in the [**failover**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/failover.md) 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

**profile** `AuthProfile` *required*

No description available.

**error** `str` *required*

No description available.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/llm/failover.py#L581)
>
> `praisonaiagents/llm/failover.py` at line 581


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.