# has_completed_onboarding

> **Function** in `deepagents_code`

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

Return whether the user has completed onboarding.

## Signature

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

---

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