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

create_pool

Create a new Sandbox Pool.

Pools pre-provision sandboxes from a template for faster startup.

Copy
create_pool(
  self,
  name: str,
  template_name: str,
  replicas: int,
  *,
  timeout: int = 30
) -> Pool

Parameters

NameTypeDescription
name*str

Pool name (lowercase letters, numbers, hyphens; max 63 chars).

template_name*str

Name of the SandboxTemplate to use (no volume mounts).

replicas*int

Number of sandboxes to pre-provision (1-100).

timeoutint
Default:30

Timeout in seconds when waiting for ready (10-600).

View source on GitHub