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

# To Estop • AI Agent SDK

> to_estop: Build the pure core emergency-stop brake this config describes.

# to\_estop

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

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

Build the pure core emergency-stop brake this config describes.

`"off"` returns a :class:`NullEmergencyStop` (never engaged);
`"file"` returns a durable, fail-safe :class:`FileEmergencyStop`.

## Signature

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

### Returns

<ResponseField name="Returns" type="Any">
  The result of the operation.
</ResponseField>

## Uses

* `FileEmergencyStop`
* `NullEmergencyStop`

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/config.py#L747">
  `praisonaiagents/gateway/config.py` at line 747
</Card>
