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_modelsPool
Class●Since v0.6

Pool

Represents a Sandbox Pool for pre-provisioned sandboxes.

Pools pre-provision sandboxes from a template for faster startup. Instead of waiting for a new sandbox to be created, sandboxes can be served from a pre-warmed pool.

Note: Templates with volume mounts cannot be used in pools.

Copy
Pool(
  self,
  name: str,
  template_name: str,
  replicas: int,
  id: Optional[str] = None,
  created_at: Optional[str] = None,
  updated_at: Optional[str] = None
)

Constructors

constructor
__init__
NameType
namestr
template_namestr
replicasint
idOptional[str]
created_atOptional[str]
updated_atOptional[str]

Attributes

attribute
name: str
attribute
template_name: str
attribute
replicas: int
attribute
id: Optional[str]
attribute
created_at: Optional[str]
attribute
updated_at: Optional[str]

Methods

method
from_dict

Create a Pool from API response dict.

View source on GitHub