[PR #184] [MERGED] chore: migrate to use SystemMessage and add tests for filesystem middleware #188

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/184
Author: @JadenKim-dev
Created: 2/4/2026
Status: Merged
Merged: 2/4/2026
Merged by: @christian-bromann

Base: mainHead: edit-fs-middleware


📝 Commits (2)

  • 674334c refactor: migrate filesystem middleware to use SystemMessage
  • 6a8d576 test: add comprehensive wrapToolCall tests for filesystem middleware

📊 Changes

2 files changed (+423 additions, -10 deletions)

View changed files

📝 libs/deepagents/src/middleware/fs.test.ts (+418 -2)
📝 libs/deepagents/src/middleware/fs.ts (+5 -8)

📄 Description

  • Refactored filesystem middleware to use SystemMessage objects instead of string-based systemPrompt, enabling safer composition with existing system messages via the concat method
  • Added test suite for wrapModelCall and wrapToolCall covering tool result eviction, filesystem storage, error handling, and edge cases

🔄 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/184 **Author:** [@JadenKim-dev](https://github.com/JadenKim-dev) **Created:** 2/4/2026 **Status:** ✅ Merged **Merged:** 2/4/2026 **Merged by:** [@christian-bromann](https://github.com/christian-bromann) **Base:** `main` ← **Head:** `edit-fs-middleware` --- ### 📝 Commits (2) - [`674334c`](https://github.com/langchain-ai/deepagentsjs/commit/674334c7b638448bd2c54f18865f7472ce333156) refactor: migrate filesystem middleware to use SystemMessage - [`6a8d576`](https://github.com/langchain-ai/deepagentsjs/commit/6a8d57666cdffcf44f9f2327976cb5185b7d7935) test: add comprehensive wrapToolCall tests for filesystem middleware ### 📊 Changes **2 files changed** (+423 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `libs/deepagents/src/middleware/fs.test.ts` (+418 -2) 📝 `libs/deepagents/src/middleware/fs.ts` (+5 -8) </details> ### 📄 Description - **Refactored filesystem middleware to use SystemMessage objects** instead of string-based `systemPrompt`, enabling safer composition with existing system messages via the `concat` method - **Added test suite for wrapModelCall and wrapToolCall** covering tool result eviction, filesystem storage, error handling, and edge cases --- <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:23 -05:00
yindo closed this issue 2026-02-16 06:17:23 -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#188