Options for StoreBackend constructor.
interface StoreBackendOptionsBackendOptionsFile data format to use for new writes. Defaults to "v2".
Custom namespace for store operations.
Accepts either a static namespace array or a factory that derives the namespace from the current backend context.
If not provided, falls back to legacy assistant-id detection from config
metadata, then the injected runtime's assistantId, and finally
["filesystem"].
// Static namespace
new StoreBackend({
namespace: ["memories", orgId, userId, "filesystem"],
});
// Dynamic namespace
new StoreBackend({
namespace: ({ state }) => [
"memories",
(state as { userId: string }).userId,
"filesystem",
],
});Optional BaseStore for persistent cross-conversation storage