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.
Backend that stores files in agent state (ephemeral).
Backend that stores files in LangGraph's BaseStore (persistent).
Backend that reads and writes files directly from the filesystem.
Routes file operations to different backends by path prefix.
Base sandbox implementation with execute() as the core abstract method.
Extension of BackendProtocol that adds shell command execution.
Protocol for pluggable memory backends (single, unified).
A glob pattern the shared matcher refuses to compile.
Compile a grep include-glob into a matcher with ripgrep-like semantics.
Sanitize tool_call_id to prevent path traversal and separator issues.
Format file content with line numbers.
Check if content is empty and return warning message.