LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Types
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
  • Vitest
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsBackends

Backends

Backends control how deep agents store files and manage state. Choose a backend based on your persistence and isolation requirements.

Learn more: For detailed guidance on choosing and configuring backends, see the Backends documentation.

Classes

Class

StateBackend

Backend that stores files in agent state (ephemeral).

Class

StoreBackend

Backend that stores files in LangGraph's BaseStore (persistent).

Class

FilesystemBackend

Backend that reads and writes files directly from the filesystem.

Class

CompositeBackend

Backend that routes file operations to different backends based on path prefix.

Class

BaseSandbox

Base sandbox implementation with execute() as the only abstract method.

Interfaces

Interface

ExecuteResponse

Result of code execution.

Interface

FileUploadResponse

Result of a single file upload operation.

Interface

FileDownloadResponse

Result of a single file download operation.

Interface

SandboxBackendProtocol

deprecated
Interface

BackendProtocol

deprecated

Types

Type

BackendFactory

deprecated

Factory function type for creating backend instances.