LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexLangSmithSandboxcaptureSnapshot
Method●Since v1.10

captureSnapshot

Capture a snapshot from this running sandbox.

Snapshots can be used to create new sandboxes via LangSmithSandbox.create({ snapshotId }).

Copy
captureSnapshot(
  name: string,
  options: LangSmithCaptureSnapshotOptions = {}
): Promise<LangSmithSnapshot>

Parameters

NameTypeDescription
name*string

Name for the snapshot.

optionsLangSmithCaptureSnapshotOptions
Default:{}

Capture options (checkpoint, timeout).

View source on GitHub