# AccessDelegation

> **Class** in `langsmith`

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

Grant letting code inside a sandbox call the LangSmith API as the creator.

``mode`` is ``"INHERIT"`` for everything the creator can do, or
``"EXPLICIT"`` for the subset named in ``permissions``. Permissions are a
ceiling re-checked on every request rather than a snapshot, so access the
creator loses is lost here too.

## Signature

```python
AccessDelegation()
```

## Extends

- `TypedDict`

## Constructors

```python
__init__(
    mode: AccessDelegationMode,
    permissions: list[str],
)
```

| Name | Type |
|------|------|
| `mode` | `AccessDelegationMode` |
| `permissions` | `list[str]` |


## Properties

- `mode`
- `permissions`

---

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