# get_invalid_prompt_identifier_msg

> **Function** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/utils/get_invalid_prompt_identifier_msg)

Get the error message for an invalid prompt identifier.

Used consistently across the codebase when parsing prompt identifiers fails.

## Signature

```python
get_invalid_prompt_identifier_msg(
    identifier: str,
) -> str
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `identifier` | `str` | Yes | The invalid identifier that was provided. |

## Returns

`str`

A formatted error message explaining the valid formats.

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/6a74bf5af9e542d8065af8edca54b2448f430916/python/langsmith/utils.py#L89)