# extract_onboarding_name_block

> **Function** in `deepagents_code`

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

Return the managed onboarding name block (markers included) if present.

## Signature

```python
extract_onboarding_name_block(
    text: str,
) -> str | None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | Memory file content to inspect. |

## Returns

`str | None`

The substring from the start marker through the end marker, or `None`
when a well-formed block is absent.

---

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