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

wait_for_snapshot

Copy
wait_for_snapshot(
  self,
  snapshot_id: str,
  *,
  timeout: int = 300,
  poll_interval: float
View source on GitHub
=
2.0
,
headers
:
RequestHeaders
=
None
)
->
Snapshot

Parameters

NameTypeDescription
snapshot_id*str
timeoutint
Default:300
poll_intervalfloat
Default:2.0

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

Snapshot UUID.

Maximum time to wait in seconds.

Time between status checks in seconds.