Skip to content

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.

    Reference

  • StateBackend


    In-memory backend using LangGraph state. Ephemeral, thread-local storage.

    Reference

  • StoreBackend


    Persistent backend using LangGraph's BaseStore. Cross-thread storage.

    Reference

  • FilesystemBackend


    Real filesystem access with optional virtual mode.

    Reference

  • BaseSandbox


    Base class for backends supporting shell command execution.

    Reference

  • CompositeBackend


    Router that delegates operations to different backends by path prefix.

    Reference