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_clientSandboxClientwait_for_sandbox
Method●Since v0.7

wait_for_sandbox

Copy
wait_for_sandbox(
  self,
  name: str,
  *,
  timeout: int = 120,
  poll_interval: float
View source on GitHub
=
1.0
,
headers
:
RequestHeaders
=
None
)
->
Sandbox

Parameters

NameTypeDescription
name*str
timeoutint
Default:120
poll_intervalfloat
Default:1.0

Poll until a sandbox reaches "ready" or "failed" status.

Uses the lightweight status endpoint for polling, then fetches the full sandbox data once ready.

Sandbox name.

Maximum time to wait in seconds.

Time between status checks in seconds.