[PR #1515] [MERGED] feat(langgraph): use createReactAgent description for supervisor agent handoffs #1508

Closed
opened 2026-02-15 20:16:01 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1515
Author: @dqbd
Created: 8/8/2025
Status: Merged
Merged: 8/8/2025
Merged by: @dqbd

Base: mainHead: dqbd/react-agent-description


📝 Commits (2)

  • 09cbf74 feat(langgraph): use createReactAgent description for supervisor agent handoffs
  • 29918ba Add description to CompiledStateGraph

📊 Changes

6 files changed (+69 additions, -8 deletions)

View changed files

.changeset/olive-crabs-clap.md (+6 -0)
📝 libs/langgraph-supervisor/src/handoff.ts (+8 -2)
📝 libs/langgraph-supervisor/src/supervisor.ts (+3 -5)
📝 libs/langgraph-supervisor/src/tests/supervisor.test.ts (+17 -1)
📝 libs/langgraph/src/graph/state.ts (+27 -0)
📝 libs/langgraph/src/prebuilt/react_agent_executor.ts (+8 -0)

📄 Description

Opted to specify description in createReactAgent instead of proposed solution in #1509, since we're already include the name property in createReactAgent, used for the handoff tool name.

Closes #1509


🔄 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/langgraphjs/pull/1515 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 8/8/2025 **Status:** ✅ Merged **Merged:** 8/8/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/react-agent-description` --- ### 📝 Commits (2) - [`09cbf74`](https://github.com/langchain-ai/langgraphjs/commit/09cbf748ebe08afae74bb1893f111dfaa2a3beee) feat(langgraph): use createReactAgent description for supervisor agent handoffs - [`29918ba`](https://github.com/langchain-ai/langgraphjs/commit/29918ba6982bb820f86b940045104a462f02943a) Add description to CompiledStateGraph ### 📊 Changes **6 files changed** (+69 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/olive-crabs-clap.md` (+6 -0) 📝 `libs/langgraph-supervisor/src/handoff.ts` (+8 -2) 📝 `libs/langgraph-supervisor/src/supervisor.ts` (+3 -5) 📝 `libs/langgraph-supervisor/src/tests/supervisor.test.ts` (+17 -1) 📝 `libs/langgraph/src/graph/state.ts` (+27 -0) 📝 `libs/langgraph/src/prebuilt/react_agent_executor.ts` (+8 -0) </details> ### 📄 Description Opted to specify `description` in `createReactAgent` instead of proposed solution in #1509, since we're already include the `name` property in `createReactAgent`, used for the handoff tool name. Closes #1509 --- <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-15 20:16:01 -05:00
yindo closed this issue 2026-02-15 20:16:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#1508