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

# Start Session • AI Agent SDK

> start_session: Start a new detection session.

# start\_session

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.

Start a new detection session.

## Signature

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

### Returns

**Returns** `Any`

The result of the operation.

## Uses

* `time.time`

## Used By

* [`DoomLoopTracker.clear_actions`](../functions/DoomLoopTracker-clear_actions)
* [`DoomLoopTracker.reset`](../functions/DoomLoopTracker-reset)
* [`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#L124)
>
> `praisonaiagents/escalation/doom_loop.py` at line 124

***

## Related Documentation

> [card] [Session Management](https://praison.ai/docs/docs/concepts/session-management)

> [card] [Sessions Feature](https://praison.ai/docs/docs/features/sessions)

> [card] [Session Persistence](https://praison.ai/docs/docs/features/session-persistence)


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