# context_hub_mount

> **Function** in `langsmith`

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

Build a read-only Context Hub-backed sandbox mount specification.

The repo's latest commit tree is mirrored into ``mount_path`` and kept in
sync for the sandbox's lifetime unless ``initial_pull_only`` is set. The
sync is one-way: files written under ``mount_path`` inside the sandbox are
never pushed back to the repo, and the next sync overwrites them.

## Signature

```python
context_hub_mount(
    *,
    id: str,
    mount_path: str,
    repo: str,
    initial_pull_only: bool | None = None,
) -> ContextHubMountSpec
```

---

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