[PR #584] [CLOSED] fix(quickjs): swarm subagents don't expose configurable middleware param #583

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/584
Author: @colifran
Created: 6/4/2026
Status: Closed

Base: mainHead: colifran/swarm-sub-mw-defaults


📝 Commits (4)

  • a11a7b4 expose middleware on swarm subagent and implement default middleware for swarm subagents
  • f1c9cb0 remove tool level middleware options
  • fcfd8fc revert default middleware options for now
  • 9056849 add changeset

📊 Changes

3 files changed (+96 additions, -2 deletions)

View changed files

.changeset/ninety-ideas-build.md (+5 -0)
📝 libs/providers/quickjs/src/tools/swarm-task.test.ts (+70 -0)
📝 libs/providers/quickjs/src/tools/swarm-task.ts (+21 -2)

📄 Description

Summary

This PR exposes middleware as a configurable param on swarm subagents.

Tests

Middleware pass-through: subagent middleware forwarded to createAgent, defaults to [], propagates to schema-variant recompilations


🔄 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/584 **Author:** [@colifran](https://github.com/colifran) **Created:** 6/4/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `colifran/swarm-sub-mw-defaults` --- ### 📝 Commits (4) - [`a11a7b4`](https://github.com/langchain-ai/deepagentsjs/commit/a11a7b40a9d6a969513ed60e08023e29a8e7880b) expose middleware on swarm subagent and implement default middleware for swarm subagents - [`f1c9cb0`](https://github.com/langchain-ai/deepagentsjs/commit/f1c9cb099336923a01527f5ea09f4ae47014691f) remove tool level middleware options - [`fcfd8fc`](https://github.com/langchain-ai/deepagentsjs/commit/fcfd8fc6b631afea997fd6ca20dcaf5122414d5a) revert default middleware options for now - [`9056849`](https://github.com/langchain-ai/deepagentsjs/commit/905684999a4cb0edb5137095baa0ed213b466031) add changeset ### 📊 Changes **3 files changed** (+96 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/ninety-ideas-build.md` (+5 -0) 📝 `libs/providers/quickjs/src/tools/swarm-task.test.ts` (+70 -0) 📝 `libs/providers/quickjs/src/tools/swarm-task.ts` (+21 -2) </details> ### 📄 Description ### Summary This PR exposes middleware as a configurable param on swarm subagents. ### Tests Middleware pass-through: subagent middleware forwarded to createAgent, defaults to [], propagates to schema-variant recompilations --- <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:50 -04:00
yindo closed this issue 2026-06-05 17:23:50 -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#583