# mark_goal_auto_accept_prompt_shown

> **Function** in `deepagents_code`

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

Persist that the goal criteria preference prompt was answered.

## Signature

```python
mark_goal_auto_accept_prompt_shown(
    state_dir: Path | None = None,
) -> bool
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `state_dir` | `Path \| None` | No | Optional state directory override for tests. (default: `None`) |

## Returns

`bool`

`True` when the marker was written, otherwise `False`.

---

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