# uuid7

> **Function** in `langsmith`

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

Generate a random UUID v7.

## Signature

```python
uuid7() -> _uuid.UUID
```

## Returns

`_uuid.UUID`

uuid.UUID: A random, RFC 9562-compliant UUID v7.

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/ea8caba352b122b6f36fc5eaf45756ca00470e0a/python/langsmith/uuid.py#L15)