# agent_address

> **Function** in `langsmith`

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

Construct an agent address with its kind and environment.

## Signature

```python
agent_address(
    id: str,
    environment: str,
) -> AgentAddress
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `id` | `str` | Yes | A DNS label of 1 to 63 lowercase ASCII letters, digits or hyphens, starting with a letter and ending with a letter or digit. |
| `environment` | `str` | Yes | Local, development, staging or production. |

---

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