# has_auto_mode_notice

> **Function** in `deepagents_code`

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

Return whether the current Auto first-enable notice was already shown.

The notice self-versions on `auto_notice_version` and deliberately does not
gate on the top-level `version` (unlike `has_yolo_acknowledgement`), so the
two records can evolve independently within one `approval.json`.

## Signature

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

## Parameters

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

## Returns

`bool`

`True` only when a shown notice matches `AUTO_NOTICE_VERSION`.

---

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