LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithexperimentalsandboxCreateSandboxOptions
Interface●Since v0.6

CreateSandboxOptions

Options for creating a sandbox.

Copy
interface CreateSandboxOptions

Properties

property
idleTtlSeconds: number

Idle timeout in seconds. The sandbox is deleted after this much inactivity. Must be a multiple of 60, or 0/undefined to disable or omit.

property
name: string

Display name (can be updated).

property
timeout: number
property
ttlSeconds: number

Maximum lifetime in seconds from creation. The sandbox is deleted after this duration. Must be a multiple of 60, or 0/undefined to disable or omit.

property
waitForReady: boolean

Whether to wait for the sandbox to be ready before returning. When false, returns immediately with status "provisioning". Use getSandboxStatus() or waitForSandbox() to poll for readiness. Default: true.

View source on GitHub