> ## 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 we're in a doom loop.

# is\_doom\_loop

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

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

Check if we're in a doom loop.

## Signature

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

### Returns

<ResponseField name="Returns" type="bool">
  True if doom loop detected
</ResponseField>

## Uses

* `is_doom_loop`

## 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 title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/autonomy.py#L398">
  `praisonaiagents/agent/autonomy.py` at line 398
</Card>
