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

# Get Next Profile • AI Agent SDK

> get_next_profile: Get the next available profile.

# get\_next\_profile

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.

Get the next available profile.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_next_profile() -> Optional[AuthProfile]
```

### Returns

**Returns** `Optional[AuthProfile]`

The result of the operation.

## Used By

* [`FailoverManager.mark_failure`](../functions/FailoverManager-mark_failure)

## Source

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

***

## Related Documentation

> [card] [Agent Profiles](https://praison.ai/docs/docs/features/agent-profiles)

> [card] [Profiling](https://praison.ai/docs/docs/features/profiling)


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