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

capture_snapshot

Copy
capture_snapshot(
  self,
  sandbox_name: str,
  name: str,
  *,
  timeout: int =
View source on GitHub
60
,
headers
:
RequestHeaders
=
None
)
->
Snapshot

Parameters

NameTypeDescription
sandbox_name*str
name*str
timeoutint
Default:60

Capture a snapshot from a running sandbox.

Blocks until the snapshot is ready (polls with 2s interval).

Name of the sandbox to capture from.

Snapshot name.

Timeout in seconds when waiting for ready.