[PR #1212] [MERGED] feat(prebuilt): add preModelHook and postModelHook #1304

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1212
Author: @dqbd
Created: 5/23/2025
Status: Merged
Merged: 5/30/2025
Merged by: @dqbd

Base: mainHead: dqbd/create-react-agent-hooks


📝 Commits (6)

  • e536db6 feat(prebuilt): add preModelHook and postModelHook
  • 38a97bf Fix tests
  • f3631ee Don't create AnnotationRoot directly
  • fa6ad84 Add mermaid structure tests for each possible combination
  • dd84df0 Lint
  • 71dee1c Fix edges

📊 Changes

4 files changed (+657 additions, -50 deletions)

View changed files

📝 libs/langgraph/src/prebuilt/react_agent_executor.ts (+172 -48)
📝 libs/langgraph/src/tests/diagrams.test.ts (+2 -2)
📝 libs/langgraph/src/tests/prebuilt.test.ts (+468 -0)
📝 libs/langgraph/src/tests/utils.ts (+15 -0)

📄 Description

Closes #1222


🔄 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/1212 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 5/23/2025 **Status:** ✅ Merged **Merged:** 5/30/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/create-react-agent-hooks` --- ### 📝 Commits (6) - [`e536db6`](https://github.com/langchain-ai/langgraphjs/commit/e536db6bc8efd188172c7614878f8bd5669c8f02) feat(prebuilt): add `preModelHook` and `postModelHook` - [`38a97bf`](https://github.com/langchain-ai/langgraphjs/commit/38a97bfb0e69b422a7076e0cc210f142427b950b) Fix tests - [`f3631ee`](https://github.com/langchain-ai/langgraphjs/commit/f3631ee357b42cb8692757f3730c9399964df7a8) Don't create AnnotationRoot directly - [`fa6ad84`](https://github.com/langchain-ai/langgraphjs/commit/fa6ad84ff6f9756bdbd1f1801c4fd46be5af995a) Add mermaid structure tests for each possible combination - [`dd84df0`](https://github.com/langchain-ai/langgraphjs/commit/dd84df01e0b3511305e8c62110401af8b05b0019) Lint - [`71dee1c`](https://github.com/langchain-ai/langgraphjs/commit/71dee1cf0ccb6b8f68a5181b17838dbab6bd55b7) Fix edges ### 📊 Changes **4 files changed** (+657 additions, -50 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/prebuilt/react_agent_executor.ts` (+172 -48) 📝 `libs/langgraph/src/tests/diagrams.test.ts` (+2 -2) 📝 `libs/langgraph/src/tests/prebuilt.test.ts` (+468 -0) 📝 `libs/langgraph/src/tests/utils.ts` (+15 -0) </details> ### 📄 Description Closes #1222 --- <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:15:11 -05:00
yindo closed this issue 2026-02-15 20:15:11 -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#1304