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

# engage • AI Agent SDK

> engage: API reference for FileEmergencyStop.engage

# engage

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

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

## Signature

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

## Uses

* `dirname`
* `os.makedirs`
* `time.time`
* `tempfile.mkstemp`
* `os.fdopen`
* `json.dump`
* `fh.flush`
* `os.fsync`
* `fh.fileno`
* `os.close`

## Source

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