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

# Doom Loop • AI Agent SDK

> Doom Loop Detection for PraisonAI Agents.

# doom\_loop

<Badge color="blue">AI Agent</Badge>

Doom Loop Detection for PraisonAI Agents.

Detects and prevents infinite loops, repeated failures, and stuck states.
Provides recovery strategies when loops are detected.

## Import

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents.escalation import doom_loop
```

## Classes

<CardGroup cols={2}>
  <Card title="DoomLoopType" icon="brackets-curly" href="../classes/DoomLoopType">
    Types of doom loops that can be detected.
  </Card>

  <Card title="RecoveryAction" icon="brackets-curly" href="../classes/RecoveryAction">
    Actions to take when doom loop is detected.
  </Card>

  <Card title="DoomLoopConfig" icon="brackets-curly" href="../classes/DoomLoopConfig">
    Configuration for doom loop detection.
  </Card>

  <Card title="DoomLoopEvent" icon="brackets-curly" href="../classes/DoomLoopEvent">
    Event representing a doom loop detection.
  </Card>

  <Card title="ActionRecord" icon="brackets-curly" href="../classes/ActionRecord">
    Record of an action for loop detection.
  </Card>

  <Card title="DoomLoopDetector" icon="brackets-curly" href="../classes/DoomLoopDetector">
    Detects and prevents doom loops in agent execution.
  </Card>
</CardGroup>
