# RunConfig

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_models/RunConfig)

The user, working directory and environment commands run with.

Mirrors ``docker run -u / -w / -e``: ``user`` and ``work_dir`` replace the
layer below, ``env_vars`` merge into it key by key. It applies at three
points, each layered over the one before -- the snapshot, the sandbox, and
a single command.

## Signature

```python
RunConfig(
    self,
    user: Optional[str] = None,
    work_dir: Optional[str] = None,
    env_vars: Optional[dict[str, str]] = None,
)
```

## Constructors

```python
__init__(
    self,
    user: Optional[str] = None,
    work_dir: Optional[str] = None,
    env_vars: Optional[dict[str, str]] = None,
) -> None
```

| Name | Type |
|------|------|
| `user` | `Optional[str]` |
| `work_dir` | `Optional[str]` |
| `env_vars` | `Optional[dict[str, str]]` |


## Properties

- `user`
- `work_dir`
- `env_vars`

## Methods

- [`from_dict()`](https://reference.langchain.com/python/langsmith/sandbox/_models/RunConfig/from_dict)
- [`to_payload()`](https://reference.langchain.com/python/langsmith/sandbox/_models/RunConfig/to_payload)

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/3114edff2f41e5989724f27c0b37d3f69c6f198c/python/langsmith/sandbox/_models.py#L140)