> ## 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 Stats • AI Agent SDK

> get_stats: Get detection statistics.

# get\_stats

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.

Get detection statistics.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def get_stats() -> Dict[str, Any]
```

### Returns

**Returns** `Dict[str, Any]`

The result of the operation.

## Uses

* `time.time`

## Used By

* [`ContextManager.get_stats`](../functions/ContextManager-get_stats)
* [`MultiAgentContextManager.get_combined_stats`](../functions/MultiAgentContextManager-get_combined_stats)
* [`MultiAgentContextManager.get_combined_stats`](../functions/MultiAgentContextManager-get_combined_stats)

## Source

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


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