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

Volume

Represents a persistent volume.

Volumes are persistent storage that can be mounted in sandboxes.

Copy
Volume(
  self,
  name: str,
  size: str,
  storage_class: str,
  id: Optional[str] = None,
  created_at: Optional[str] = None,
  updated_at: Optional[str] = None
)

Constructors

constructor
__init__
NameType
namestr
sizestr
storage_classstr
idOptional[str]
created_atOptional[str]
updated_atOptional[str]

Attributes

attribute
name: str
attribute
size: str
attribute
storage_class: str
attribute
id: Optional[str]
attribute
created_at: Optional[str]
attribute
updated_at: Optional[str]

Methods

method
from_dict

Create a Volume from API response dict.

View source on GitHub