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
  • RemoteGraph
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewClientAsyncClientRun HelpersRun TreesEvaluationSchemasUtilitiesWrappersAnonymizerTestingExpect APIMiddlewarePytest PluginDeployment SDKRemoteGraph
Language
Theme
Pythonlangsmithsandbox_modelsSandboxTemplate
Class●Since v0.6

SandboxTemplate

Represents a SandboxTemplate.

Templates define the image, resource limits, and volume mounts for sandboxes. All other container details are handled by the server with secure defaults.

Copy
SandboxTemplate(
  self,
  name: str,
  image: str,
  resources: ResourceSpec,
  volume_mounts: list[VolumeMountSpec] = list(),
  id: Optional[str] = None,
  created_at: Optional[str] = None,
  updated_at: Optional[str] = None
)

Constructors

constructor
__init__
NameType
namestr
imagestr
resourcesResourceSpec
volume_mountslist[VolumeMountSpec]
idOptional[str]
created_atOptional[str]
updated_atOptional[str]

Attributes

attribute
name: str
attribute
image: str
attribute
resources: ResourceSpec
attribute
volume_mounts: list[VolumeMountSpec]
attribute
id: Optional[str]
attribute
created_at: Optional[str]
attribute
updated_at: Optional[str]

Methods

method
from_dict

Create a SandboxTemplate from API response dict.

View source on GitHub