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

from_dict

Create a Sandbox from API response dict.

Copy
from_dict(
  cls,
  data: dict[str, Any],
  client: SandboxClient,
  auto_delete: bool = True
) -> Sandbox

Parameters

NameTypeDescription
data*dict[str, Any]

API response dictionary containing sandbox data.

client*SandboxClient

Parent SandboxClient for operations.

auto_deletebool
Default:True

Whether to delete the sandbox on context exit.

View source on GitHub