LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Agent
  • Middleware
  • Backends
  • Sandboxes
  • Skills
  • Subagents
  • Configuration
  • 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

OverviewAgentMiddlewareBackendsSandboxesSkillsSubagentsConfigurationTypes
Modal
Daytona
Deno
Node VFS
Sandbox Standard Tests
Vitest
Language
Theme
JavaScriptdeepagentsindexFilesystemMiddlewareOptions
Interface●Since v1.4

FilesystemMiddlewareOptions

Options for creating filesystem middleware.

Copy
interface FilesystemMiddlewareOptions

Properties

property
backend: BackendProtocol | BackendFactory

Backend instance or factory (default: StateBackend)

property
customToolDescriptions: Record<string, string> | null

Optional custom tool descriptions override

property
systemPrompt: string | null

Optional custom system prompt override

property
toolTokenLimitBeforeEvict: number | null

Optional token limit before evicting a tool result to the filesystem (default: 20000 tokens, ~80KB)

View source on GitHub