[PR #442] [MERGED] fix(deepagents): closer align store backend with Python #467

Closed
opened 2026-06-05 17:23:17 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/442
Author: @christian-bromann
Created: 4/8/2026
Status: Merged
Merged: 4/9/2026
Merged by: @christian-bromann

Base: mainHead: cb/align-store-backend


📝 Commits (3)

  • 2155415 fix(deepagents): closer align store backend with Python
  • c609cc2 format
  • 7c2f899 Create chilled-beers-lay.md

📊 Changes

5 files changed (+275 additions, -27 deletions)

View changed files

.changeset/chilled-beers-lay.md (+5 -0)
📝 libs/deepagents/src/backends/index.ts (+6 -1)
📝 libs/deepagents/src/backends/store.test.ts (+102 -2)
📝 libs/deepagents/src/backends/store.ts (+160 -24)
📝 libs/deepagents/src/index.ts (+2 -0)

📄 Description

Aligned StoreBackend in libs/deepagents/src/backends/store.ts more closely with the Python version while keeping the current TS behavior working:

  • namespace now supports either a static string[] or a dynamic factory, so callers can derive store namespaces from runtime state/config instead of hardcoding them.
  • Legacy namespace fallback now checks config metadata for assistant_id / assistantId first, then falls back to the existing injected assistantId, and finally to ["filesystem"].
  • Added exported types for the new namespace factory context in libs/deepagents/src/backends/index.ts and libs/deepagents/src/index.ts.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/deepagentsjs/pull/442 **Author:** [@christian-bromann](https://github.com/christian-bromann) **Created:** 4/8/2026 **Status:** ✅ Merged **Merged:** 4/9/2026 **Merged by:** [@christian-bromann](https://github.com/christian-bromann) **Base:** `main` ← **Head:** `cb/align-store-backend` --- ### 📝 Commits (3) - [`2155415`](https://github.com/langchain-ai/deepagentsjs/commit/21554151283d0db8c2e54ec526a857088b39552d) fix(deepagents): closer align store backend with Python - [`c609cc2`](https://github.com/langchain-ai/deepagentsjs/commit/c609cc25de07d06305c65b94d2db0bd5312cec53) format - [`7c2f899`](https://github.com/langchain-ai/deepagentsjs/commit/7c2f899651c025ac3370306297bd6b53e1ebe9c5) Create chilled-beers-lay.md ### 📊 Changes **5 files changed** (+275 additions, -27 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/chilled-beers-lay.md` (+5 -0) 📝 `libs/deepagents/src/backends/index.ts` (+6 -1) 📝 `libs/deepagents/src/backends/store.test.ts` (+102 -2) 📝 `libs/deepagents/src/backends/store.ts` (+160 -24) 📝 `libs/deepagents/src/index.ts` (+2 -0) </details> ### 📄 Description Aligned `StoreBackend` in `libs/deepagents/src/backends/store.ts` more closely with the Python version while keeping the current TS behavior working: - `namespace` now supports either a static `string[]` or a dynamic factory, so callers can derive store namespaces from runtime state/config instead of hardcoding them. - Legacy namespace fallback now checks config metadata for `assistant_id` / `assistantId` first, then falls back to the existing injected `assistantId`, and finally to `["filesystem"]`. - Added exported types for the new namespace factory context in `libs/deepagents/src/backends/index.ts` and `libs/deepagents/src/index.ts`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 17:23:17 -04:00
yindo closed this issue 2026-06-05 17:23:17 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#467