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
JavaScriptdeepagentsindexStoreBackendgetNamespace
Method●Since v1.4

getNamespace

Get the namespace for store operations.

Resolution order:

  1. Explicit namespace from constructor options (both modes)
  2. Legacy mode: [assistantId, "filesystem"] fallback from StateAndStore
  3. Zero-arg mode without namespace: ["filesystem"] with a deprecation warning nudging callers to pass an explicit namespace
  4. Legacy mode without assistantId: ["filesystem"]
Copy
getNamespace(): string[]
View source on GitHub