LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexLangSmithSandboxcreate
Method●Since v1.8

create

Create and return a new LangSmithSandbox in one step.

This is the recommended way to create a sandbox — no need to import anything from langsmith/experimental/sandbox directly.

Copy
create(options: LangSmithSandboxCreateOptions = {}): Promise<LangSmithSandbox>

Parameters

NameTypeDescription
optionsLangSmithSandboxCreateOptions
Default:{}

Example

Copy
const sandbox = await LangSmithSandbox.create({ templateName: "deepagents" });
try {
  const agent = createDeepAgent({ model, backend: sandbox });
  await agent.invoke({ messages: [...] });
} finally {
  await sandbox.close();
}
View source on GitHub