[PR #125] [MERGED] fix(deepagents): align with Python interfaces #141

Closed
opened 2026-02-16 06:17:16 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/125
Author: @christian-bromann
Created: 1/16/2026
Status: Merged
Merged: 1/16/2026
Merged by: @christian-bromann

Base: mainHead: cb/python-alignment


📝 Commits (4)

📊 Changes

16 files changed (+105 additions, -266 deletions)

View changed files

.changeset/wide-ravens-guess.md (+5 -0)
📝 libs/deepagents/src/backends/composite.test.ts (+0 -3)
📝 libs/deepagents/src/backends/composite.ts (+1 -13)
📝 libs/deepagents/src/backends/filesystem.test.ts (+2 -55)
📝 libs/deepagents/src/backends/filesystem.ts (+1 -42)
📝 libs/deepagents/src/backends/protocol.test.ts (+0 -6)
📝 libs/deepagents/src/backends/protocol.ts (+1 -9)
📝 libs/deepagents/src/backends/sandbox.test.ts (+0 -29)
📝 libs/deepagents/src/backends/sandbox.ts (+1 -34)
📝 libs/deepagents/src/backends/state.ts (+1 -15)
📝 libs/deepagents/src/backends/store.ts (+10 -17)
📝 libs/deepagents/src/middleware/fs.ts (+2 -2)
📝 libs/deepagents/src/middleware/index.test.ts (+0 -2)
📝 libs/deepagents/src/middleware/memory.test.ts (+3 -1)
📝 libs/deepagents/src/middleware/memory.ts (+64 -34)
📝 libs/deepagents/src/middleware/subagents.ts (+14 -4)

📄 Description

Did a little comparison between JS and Python and aligned remaining differences between both. Mostly:

  • Updated default read limit from 2000 to 500
  • Removed readRaw from BackendProtocol and all backend implementations
  • Ported comprehensive Memory system prompt from Python
  • Aligned state exclusion keys in subagents middleware

🔄 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/125 **Author:** [@christian-bromann](https://github.com/christian-bromann) **Created:** 1/16/2026 **Status:** ✅ Merged **Merged:** 1/16/2026 **Merged by:** [@christian-bromann](https://github.com/christian-bromann) **Base:** `main` ← **Head:** `cb/python-alignment` --- ### 📝 Commits (4) - [`d4f483f`](https://github.com/langchain-ai/deepagentsjs/commit/d4f483f3a09cee9a6797ef650f7d7e58b68cb1ae) fix(deepagents): align with Python interfaces - [`c6c5b22`](https://github.com/langchain-ai/deepagentsjs/commit/c6c5b220994f7e47cc72f43fbbb766b3e6b61df9) fix test - [`8382f32`](https://github.com/langchain-ai/deepagentsjs/commit/8382f3263deb585b928da041bf85b729a16253b8) cr - [`3f32cdc`](https://github.com/langchain-ai/deepagentsjs/commit/3f32cdcb197c380c26f1040833609094ae68691c) add changelog ### 📊 Changes **16 files changed** (+105 additions, -266 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/wide-ravens-guess.md` (+5 -0) 📝 `libs/deepagents/src/backends/composite.test.ts` (+0 -3) 📝 `libs/deepagents/src/backends/composite.ts` (+1 -13) 📝 `libs/deepagents/src/backends/filesystem.test.ts` (+2 -55) 📝 `libs/deepagents/src/backends/filesystem.ts` (+1 -42) 📝 `libs/deepagents/src/backends/protocol.test.ts` (+0 -6) 📝 `libs/deepagents/src/backends/protocol.ts` (+1 -9) 📝 `libs/deepagents/src/backends/sandbox.test.ts` (+0 -29) 📝 `libs/deepagents/src/backends/sandbox.ts` (+1 -34) 📝 `libs/deepagents/src/backends/state.ts` (+1 -15) 📝 `libs/deepagents/src/backends/store.ts` (+10 -17) 📝 `libs/deepagents/src/middleware/fs.ts` (+2 -2) 📝 `libs/deepagents/src/middleware/index.test.ts` (+0 -2) 📝 `libs/deepagents/src/middleware/memory.test.ts` (+3 -1) 📝 `libs/deepagents/src/middleware/memory.ts` (+64 -34) 📝 `libs/deepagents/src/middleware/subagents.ts` (+14 -4) </details> ### 📄 Description Did a little comparison between JS and Python and aligned remaining differences between both. Mostly: - Updated default read limit from 2000 to 500 - Removed readRaw from BackendProtocol and all backend implementations - Ported comprehensive Memory system prompt from Python - Aligned state exclusion keys in subagents middleware --- <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-02-16 06:17:16 -05:00
yindo closed this issue 2026-02-16 06:17:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/deepagentsjs#141