# 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/fcda9320ff067c3d3857e9e3d088fc1eb0643fc4/python/langsmith/uuid.py#L14)