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

Chat LangChain

What can I help with?

Enter to send·Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDK
Language
Theme
Pythonlangsmithtypessandbox_responseSandboxResponse
Class●Since v0.16

SandboxResponse

Copy
SandboxResponse()

Bases

BaseModel

Attributes

Inherited fromBaseModel

Attributes

Amodel_fields_set: set[str]Amodel_config: ConfigDictAmodel_construct: construct

Methods

Mto_dict
—

Recursively generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

View source on GitHub
Mto_json
—

Generates a JSON string representing this model as it would be received from or sent to the API (but with indentation).

Mconstruct
Mmodel_dump
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump

Mmodel_dump_json
—

Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json

Classes

CConfig
attribute
id: Optional[str]
attribute
access_delegation: Optional[AccessDelegation]
attribute
cpu_millicores: Optional[int]
attribute
created_at: Optional[str]
attribute
created_by: Optional[str]
attribute
dataplane_url: Optional[str]
attribute
delete_after_stop_seconds: Optional[int]
attribute
fs_capacity_bytes: Optional[int]
attribute
idle_ttl_seconds: Optional[int]
attribute
labels: Optional[Dict[str, str]]
attribute
mem_bytes: Optional[int]
attribute
mount_config: Optional[SandboxMountConfig]
attribute
name: Optional[str]
attribute
nested_virtualization: Optional[bool]
attribute
persistent: Optional[bool]
attribute
preserve_memory_on_stop: Optional[bool]
attribute
proxy_config: Optional[ProxyConfig]
attribute
run_config: Optional[RunConfig]
attribute
size_class: Optional[str]
attribute
snapshot_id: Optional[str]
attribute
status: Optional[str]
attribute
status_message: Optional[str]
attribute
stopped_at: Optional[str]
attribute
updated_at: Optional[str]
attribute
updated_by: Optional[str]
attribute
vcpus: Optional[int]
attribute
volumes: Optional[List[Volume]]

AccessDelegation is the LangSmith access this sandbox was granted, absent when it has none. It is reported exactly as it was requested at create.

NestedVirtualization reports whether the sandbox asked to run virtual machines of its own. It takes effect only while its organization has nested virtualization enabled, from the sandbox's next start.

Persistent reports whether the sandbox keeps its filesystem across stops.

When false, its writes are discarded whenever it stops and it is not charged for storage.

RunConfig is what the sandbox's commands run with: the user, working directory and base env beneath env_vars.

Volumes (beta) are the volumes attached to the sandbox, in slot order.

Absent when the workspace does not have sandbox volumes enabled.