> ## 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 • Rust 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 [**FailoverManager**](../classes/FailoverManager) 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(&mut self, profile_name: &str, error: &str, is_rate_limit: bool) -> ()
```

## Parameters

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

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

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

### Returns

<ResponseField name="Returns" type="()">
  The result of the operation.
</ResponseField>
