[PR #545] [MERGED] chore(quickjs): update swarm task tool to use withStructuredOutput #551

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/545
Author: @colifran
Created: 5/20/2026
Status: Merged
Merged: 5/21/2026
Merged by: @colifran

Base: mainHead: colifran/structured-output


📝 Commits (3)

📊 Changes

4 files changed (+42 additions, -424 deletions)

View changed files

.changeset/hip-friends-make.md (+5 -0)
📝 libs/providers/quickjs/src/index.ts (+0 -1)
📝 libs/providers/quickjs/src/tools/swarm-task.test.ts (+16 -238)
📝 libs/providers/quickjs/src/tools/swarm-task.ts (+21 -185)

📄 Description

Summary

Switch JS swarm task tool to use withStructuredOutput instead of hand-rolled bindTools + tool_calls extraction.

Tests

  • All 202 unit tests pass
  • Removed normalizeSchema tests and bindTools-specific tests, replaced with withStructuredOutput test using FakeToolCallingModel

🔄 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/545 **Author:** [@colifran](https://github.com/colifran) **Created:** 5/20/2026 **Status:** ✅ Merged **Merged:** 5/21/2026 **Merged by:** [@colifran](https://github.com/colifran) **Base:** `main` ← **Head:** `colifran/structured-output` --- ### 📝 Commits (3) - [`2365289`](https://github.com/langchain-ai/deepagentsjs/commit/23652893f393fd769de0c7d6b875b0a08ca0c271) use with structured output for swarm task tool - [`83970e6`](https://github.com/langchain-ai/deepagentsjs/commit/83970e60166c95ec15285dd734b4b01a35ba1e93) changeset - [`da304db`](https://github.com/langchain-ai/deepagentsjs/commit/da304dbd0eee1e759dafcab1d636fd5e8dc72459) lint ### 📊 Changes **4 files changed** (+42 additions, -424 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/hip-friends-make.md` (+5 -0) 📝 `libs/providers/quickjs/src/index.ts` (+0 -1) 📝 `libs/providers/quickjs/src/tools/swarm-task.test.ts` (+16 -238) 📝 `libs/providers/quickjs/src/tools/swarm-task.ts` (+21 -185) </details> ### 📄 Description ### Summary Switch JS swarm task tool to use withStructuredOutput instead of hand-rolled bindTools + tool_calls extraction. ### Tests - All 202 unit tests pass - Removed normalizeSchema tests and bindTools-specific tests, replaced with withStructuredOutput test using FakeToolCallingModel --- <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:39 -04:00
yindo closed this issue 2026-06-05 17:23:39 -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#551