Backends¶
Reference docs
This page contains reference documentation for Backends. See the docs for conceptual guides, tutorials, and examples.
Backends provide a unified interface for file operations across different storage types. All backends implement the BackendProtocol, enabling agents to work with files regardless of where they're stored.
-
BackendProtocol
Abstract protocol defining the interface all backends must implement.
-
StateBackend
In-memory backend using LangGraph state. Ephemeral, thread-local storage.
-
StoreBackend
Persistent backend using LangGraph's BaseStore. Cross-thread storage.
-
FilesystemBackend
Real filesystem access with optional virtual mode.
-
BaseSandbox
Base class for backends supporting shell command execution.
-
CompositeBackend
Router that delegates operations to different backends by path prefix.