# parse_prompt_identifier

> **Function** in `langsmith`

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

Parse a string in the format of `owner/name:hash`, `name:hash`, `owner/name`, or `name`.

## Signature

```python
parse_prompt_identifier(
    identifier: str,
) -> tuple[str, str, str]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `identifier` | `str` | Yes | The prompt identifier to parse. |

## Returns

`tuple[str, str, str]`

A tuple containing `(owner, name, hash)`.

---

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