[PR #114] [MERGED] fix: state graph new node validation #500

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/114
Author: @dimatill
Created: 4/9/2024
Status: Merged
Merged: 4/16/2024
Merged by: @nfcampos

Base: mainHead: state_graph_node_validation_fix


📝 Commits (1)

  • 4edfa49 fix: state graph new node validation

📊 Changes

2 files changed (+18 additions, -1 deletions)

View changed files

📝 langgraph/src/graph/state.ts (+1 -1)
langgraph/src/tests/graph.test.ts (+17 -0)

📄 Description

Fixes a new node key validation for StateGraph.

In the previous implementation, it validated existing nodes instead of new ones.

Python implementation reference: https://github.com/langchain-ai/langgraph/blob/main/langgraph/graph/state.py#L48


🔄 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/114 **Author:** [@dimatill](https://github.com/dimatill) **Created:** 4/9/2024 **Status:** ✅ Merged **Merged:** 4/16/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `state_graph_node_validation_fix` --- ### 📝 Commits (1) - [`4edfa49`](https://github.com/langchain-ai/langgraphjs/commit/4edfa4981928b74291fc9117ec9a8e96f5ed2a62) fix: state graph new node validation ### 📊 Changes **2 files changed** (+18 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/src/graph/state.ts` (+1 -1) ➕ `langgraph/src/tests/graph.test.ts` (+17 -0) </details> ### 📄 Description Fixes a new node key validation for StateGraph. In the previous implementation, it validated existing nodes instead of new ones. Python implementation reference: https://github.com/langchain-ai/langgraph/blob/main/langgraph/graph/state.py#L48 --- <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 18:17:11 -05:00
yindo closed this issue 2026-02-15 18:17: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#500