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_modelsSnapshot
Class●Since v0.7

Snapshot

Copy
Snapshot(
  self,
  id: str,
  name: str,
  status: str,

Constructors

Attributes

Methods

View source on GitHub
fs_capacity_bytes
:
int
,
docker_image
:
Optional
[
str
]
=
None
,
image_digest
:
Optional
[
str
]
=
None
,
source_sandbox_id
:
Optional
[
str
]
=
None
,
status_message
:
Optional
[
str
]
=
None
,
fs_used_bytes
:
Optional
[
int
]
=
None
,
created_by
:
Optional
[
str
]
=
None
,
registry_id
:
Optional
[
str
]
=
None
,
created_at
:
Optional
[
str
]
=
None
,
updated_at
:
Optional
[
str
]
=
None
)
constructor
__init__
NameType
idstr
namestr
statusstr
fs_capacity_bytesint
docker_imageOptional[str]
image_digestOptional[str]
source_sandbox_idOptional[str]
status_messageOptional[str]
fs_used_bytesOptional[int]
created_byOptional[str]
registry_idOptional[str]
created_atOptional[str]
updated_atOptional[str]
attribute
id: str
attribute
name: str
attribute
status: str
attribute
fs_capacity_bytes: int
attribute
docker_image: Optional[str]
attribute
image_digest: Optional[str]
attribute
source_sandbox_id: Optional[str]
attribute
status_message: Optional[str]
attribute
fs_used_bytes: Optional[int]
attribute
created_by: Optional[str]
attribute
registry_id: Optional[str]
attribute
created_at: Optional[str]
attribute
updated_at: Optional[str]
method
from_dict

Create a Snapshot from API response dict.

Represents a sandbox snapshot.

Snapshots are built from Docker images or captured from running sandboxes. They are used to create new sandboxes.