LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Client
  • AsyncClient
  • Run Helpers
  • Run Trees
  • Evaluation
  • Schemas
  • Utilities
  • Wrappers
  • Anonymizer
  • Testing
  • Expect API
  • Middleware
  • Pytest Plugin
  • Deployment SDK
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithsandbox_mountscontext_hub_mount
Function●Since v0.11

context_hub_mount

Copy
context_hub_mount(
  *,
  id: str,
  mount_path: str,
  repo: str,
  initial_pull_only: 

Used in Docs

  • Sandbox SDK usage
View source on GitHub
bool
|
None
=
None
)
->
ContextHubMountSpec

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.