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
Pythonlangsmithsandbox_async_sandboxAsyncSandboxfrom_dict
Method●Since v0.14

from_dict

Copy
from_dict(
  cls,
  data: dict[str, Any],
  client: AsyncSandboxClient,
  auto_delete: 
View source on GitHub
bool
=
True
)
->
AsyncSandbox

Parameters

NameTypeDescription
data*dict[str, Any]

API response dictionary containing sandbox data.

client*AsyncSandboxClient

Parent AsyncSandboxClient for operations.

auto_deletebool
Default:True

Create an AsyncSandbox from API response dict.

Whether to delete the sandbox on context exit.