[PR #423] [MERGED] fix(deepagents): add integration test for subagent responseFormat #446

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/deepagentsjs/pull/423
Author: @maahir30
Created: 4/2/2026
Status: Merged
Merged: 4/2/2026
Merged by: @maahir30

Base: mainHead: add-quick-test


📝 Commits (2)

📊 Changes

1 file changed (+60 additions, -1 deletions)

View changed files

📝 libs/deepagents/src/agent.int.test.ts (+60 -1)

📄 Description

Adds an integration test that verifies the end-to-end flow when responseFormat is set directly on a SubAgent spec. The test confirms that the subagent's structuredResponse is JSON-serialized into the ToolMessage content returned to the parent agent. This path was previously only covered by a unit test that mocked the subagent output directly, skipping the createAgent + responseFormat integration.


🔄 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/423 **Author:** [@maahir30](https://github.com/maahir30) **Created:** 4/2/2026 **Status:** ✅ Merged **Merged:** 4/2/2026 **Merged by:** [@maahir30](https://github.com/maahir30) **Base:** `main` ← **Head:** `add-quick-test` --- ### 📝 Commits (2) - [`95e0ea8`](https://github.com/langchain-ai/deepagentsjs/commit/95e0ea88f2ea364ba0f41e5b79f6fd5a35c85072) add in quick test - [`39dd5fa`](https://github.com/langchain-ai/deepagentsjs/commit/39dd5faabc73d108bd55d19c0ddef82cc5c131c5) lint ### 📊 Changes **1 file changed** (+60 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `libs/deepagents/src/agent.int.test.ts` (+60 -1) </details> ### 📄 Description Adds an integration test that verifies the end-to-end flow when `responseFormat` is set directly on a `SubAgent` spec. The test confirms that the subagent's `structuredResponse` is JSON-serialized into the `ToolMessage` content returned to the parent agent. This path was previously only covered by a unit test that mocked the subagent output directly, skipping the `createAgent` + `responseFormat` integration. --- <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:07 -04:00
yindo closed this issue 2026-06-05 17:23:07 -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#446