Skip to content

feat(sdk): add namespace templating to StoreBackend#1009

Closed
Eugene Yurtsev (eyurtsev) wants to merge 2 commits intomasterfrom
namespace-templating
Closed

feat(sdk): add namespace templating to StoreBackend#1009
Eugene Yurtsev (eyurtsev) wants to merge 2 commits intomasterfrom
namespace-templating

Conversation

@eyurtsev
Copy link
Copy Markdown
Collaborator

Adds flexible namespace templating to StoreBackend inspired by langmem's approach. StoreBackend now accepts an optional namespace_template parameter that supports variable substitution from config['configurable'], enabling user-scoped or multi-level namespacing patterns like ('filesystem', '{user_id}') or ('workspace', '{workspace_id}', 'user', '{user_id}'). The implementation preserves backwards compatibility by falling back to legacy assistant_id detection when no template is provided.

Validates namespace template segments to only allow alphanumeric characters, hyphens, and underscores in variables. Prevents injection of wildcards (*) or path traversal characters (/) while supporting UUIDs and common naming patterns.
@github-actions github-actions Bot added the deepagents Related to the `deepagents` SDK / agent harness label Feb 3, 2026
@sydney-runkle
Copy link
Copy Markdown
Collaborator

Addressed via #1169

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepagents Related to the `deepagents` SDK / agent harness

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants