# WriteReplica

> **Class** in `langsmith`

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

Configuration for a write replica endpoint.

!!! warning "Experimental"
    `address` is in beta. It is enabled per workspace; a
    workspace without it rejects the runs, so tracing is lost rather than
    falling back to a project. It may change without notice.

## Signature

```python
WriteReplica()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    api_url: Optional[str],
    api_key: NotRequired[str],
    auth: AuthHeaders,
    project_name: Optional[str],
    address: Optional[AgentAddress],
    primary: bool,
    updates: Optional[dict],
    client: Optional[Client],
)
```

| Name | Type |
|------|------|
| `api_url` | `Optional[str]` |
| `api_key` | `NotRequired[str]` |
| `auth` | `AuthHeaders` |
| `project_name` | `Optional[str]` |
| `address` | `Optional[AgentAddress]` |
| `primary` | `bool` |
| `updates` | `Optional[dict]` |
| `client` | `Optional[Client]` |


## Properties

- `api_url`
- `api_key`
- `auth`
- `project_name`
- `address`
- `primary`
- `updates`
- `client`

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/52e79add98f6559235d1eb00f5f533b9be6d4cf6/python/langsmith/run_trees.py#L62)