# validate_profile_key

> **Function** in `deepagents`

📖 [View in docs](https://reference.langchain.com/python/deepagents/profiles/_keys/validate_profile_key)

Validate a profile registry key.

Enforces the `provider` or `provider:model` shape used by the lookup
functions. Rejects empty strings, whitespace-only or whitespace-padded
halves, multiple colons, and empty halves.

## Signature

```python
validate_profile_key(
    key: str,
) -> None
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `key` | `str` | Yes | The registry key to check. |

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/a6c06b029710d34035af6ae1faded093cc8f3073/libs/deepagents/deepagents/profiles/_keys.py#L11)