# has_shown_goal_auto_accept_prompt

> **Function** in `deepagents_code`

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

Return whether the goal criteria preference prompt was answered.

## Signature

```python
has_shown_goal_auto_accept_prompt(
    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 prompt marker exists, otherwise `False`.

---

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