[PR #181] [MERGED] refactor: Add shared filesValue state primitive #186

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/181
Author: @maahir30
Created: 2/3/2026
Status: Merged
Merged: 2/3/2026
Merged by: @christian-bromann

Base: mainHead: add-file-value-reducer


📝 Commits (2)

📊 Changes

4 files changed (+48 additions, -17 deletions)

View changed files

📝 libs/deepagents/src/index.ts (+3 -0)
📝 libs/deepagents/src/middleware/memory.ts (+3 -9)
📝 libs/deepagents/src/middleware/skills.ts (+2 -8)
libs/deepagents/src/values.ts (+40 -0)

📄 Description

Add shared filesValue state primitive

Introduces filesValue - a reusable ReducedValue for file state management, similar to LangGraph's messagesValue.

Replaces duplicated inline ReducedValue definitions in memory.ts and skills.ts with a shared value exported from new values.ts module.

Users can now import filesValue directly for custom state schemas.


🔄 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/181 **Author:** [@maahir30](https://github.com/maahir30) **Created:** 2/3/2026 **Status:** ✅ Merged **Merged:** 2/3/2026 **Merged by:** [@christian-bromann](https://github.com/christian-bromann) **Base:** `main` ← **Head:** `add-file-value-reducer` --- ### 📝 Commits (2) - [`a3fccbc`](https://github.com/langchain-ai/deepagentsjs/commit/a3fccbceedde54cd57eda92cd79686bc2f06068e) Add shared filesValue - [`4e778c2`](https://github.com/langchain-ai/deepagentsjs/commit/4e778c2c44fc9b8a641b4f4536793b6680b27ba8) lint ### 📊 Changes **4 files changed** (+48 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `libs/deepagents/src/index.ts` (+3 -0) 📝 `libs/deepagents/src/middleware/memory.ts` (+3 -9) 📝 `libs/deepagents/src/middleware/skills.ts` (+2 -8) ➕ `libs/deepagents/src/values.ts` (+40 -0) </details> ### 📄 Description ### Add shared `filesValue` state primitive Introduces `filesValue` - a reusable `ReducedValue` for file state management, similar to LangGraph's `messagesValue`. Replaces duplicated inline `ReducedValue` definitions in `memory.ts` and `skills.ts` with a shared value exported from new `values.ts` module. Users can now import `filesValue` directly for custom state schemas. --- <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#186