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

update_volume

Update a volume's name and/or size.

You can update the display name, size, or both in a single request. Only storage size increases are allowed (storage backend limitation).

Copy
update_volume(
  self,
  name: str,
  *,
  new_name: Optional[str] = None,
  size: Optional[str] = None
) -> Volume

Parameters

NameTypeDescription
name*str

Current volume name.

new_nameOptional[str]
Default:None

New display name (optional).

sizeOptional[str]
Default:None

New storage size (must be >= current size). Optional.

View source on GitHub