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

# Is Doom Loop • AI Agent SDK

> is_doom_loop: Check if current state indicates a doom loop.

# is\_doom\_loop

Method

> This is a method of the [**DoomLoopDetector**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/DoomLoopDetector.md) class in the [**doom\_loop**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/doom_loop.md) module.

Check if current state indicates a doom loop.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def is_doom_loop() -> bool
```

### Returns

**Returns** `bool`

True if doom loop detected

## Used By

* [`DoomLoopTracker.is_doom_loop`](../functions/DoomLoopTracker-is_doom_loop)
* [`DoomLoopTracker.get_recovery_action`](../functions/DoomLoopTracker-get_recovery_action)
* [`DoomLoopDetector.record_action`](../functions/DoomLoopDetector-record_action)
* [`EscalationPipeline.execute_at_stage`](../functions/EscalationPipeline-execute_at_stage)

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/escalation/doom_loop.py#L198)
>
> `praisonaiagents/escalation/doom_loop.py` at line 198


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