# has_yolo_acknowledgement

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/approval_mode/has_yolo_acknowledgement)

Return whether the current unrestricted-mode warning was accepted.

## Signature

```python
has_yolo_acknowledgement(
    path: Path | None = None,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `path` | `Path \| None` | No | Alternate acknowledgement path for tests. (default: `None`) |

## Returns

`bool`

`True` only for a valid record matching the current policy version.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/4bfa52000ef65ac623d8ada0cb67f67cbdd663ea/libs/code/deepagents_code/approval_mode.py#L514)