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

update_pool

Update a Pool's name and/or replica count.

You can update the display name, replica count, or both. The template reference cannot be changed after creation.

Copy
update_pool(
  self,
  name: str,
  *,
  new_name: Optional[str] = None,
  replicas: Optional[int] = None
) -> Pool

Parameters

NameTypeDescription
name*str

Current pool name.

new_nameOptional[str]
Default:None

New display name (optional).

replicasOptional[int]
Default:None

New number of replicas (0-100). Set to 0 to pause.

View source on GitHub