# ensure_address

> **Function** in `langsmith`

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

Validate an `Address` of any kind, as a lookup takes it.

For the calls that only resolve an address to its project, such as
`get_run_url`. Whatever receives traces takes `ensure_agent`. A string is
not an address.

## Signature

```python
ensure_address(
    address: Any,
) -> Address
```

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-python/blob/15dd2a789f976bbbafd803b26d0f25c08b5ed527/src/langsmith/address.py#L155)