[PR #310] [MERGED] Make condition nodes optional #1377

Closed
opened 2026-02-20 17:44:34 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/310
Author: @angeligareta
Created: 4/15/2024
Status: Merged
Merged: 4/17/2024
Merged by: @nfcampos

Base: mainHead: add_condition_nodes_as_optional


📝 Commits (3)

  • 0f667cd Add add_condition_nodes parameter to offer possibility of not including conditional nodes
  • 35fe16b Merge branch 'main' into add_condition_nodes_as_optional
  • 4e8e511 Fix formatting in graph

📊 Changes

3 files changed (+142 additions, -7 deletions)

View changed files

📝 langgraph/graph/graph.py (+14 -5)
📝 tests/__snapshots__/test_pregel.ambr (+126 -2)
📝 tests/test_pregel.py (+2 -0)

📄 Description

By default, condition nodes like 'should_continue' will be added for verbosity. I propose to make this optional (activated by default) so that if the user wants to exclude these they can use add_condition_nodes parameter. The motivation being that for large graphs these nodes make the rendered graph larger and more difficult to read.


🔄 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/langgraph/pull/310 **Author:** [@angeligareta](https://github.com/angeligareta) **Created:** 4/15/2024 **Status:** ✅ Merged **Merged:** 4/17/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `add_condition_nodes_as_optional` --- ### 📝 Commits (3) - [`0f667cd`](https://github.com/langchain-ai/langgraph/commit/0f667cd9ebf1c6b5a3b19e322bdafd7c460c5bce) Add add_condition_nodes parameter to offer possibility of not including conditional nodes - [`35fe16b`](https://github.com/langchain-ai/langgraph/commit/35fe16b61584991492ae803d33ce89720eeb66ba) Merge branch 'main' into add_condition_nodes_as_optional - [`4e8e511`](https://github.com/langchain-ai/langgraph/commit/4e8e51126d035d009cd962e3639848a01075f0f4) Fix formatting in graph ### 📊 Changes **3 files changed** (+142 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/graph/graph.py` (+14 -5) 📝 `tests/__snapshots__/test_pregel.ambr` (+126 -2) 📝 `tests/test_pregel.py` (+2 -0) </details> ### 📄 Description By default, condition nodes like 'should_continue' will be added for verbosity. I propose to make this optional (activated by default) so that if the user wants to exclude these they can use add_condition_nodes parameter. The motivation being that for large graphs these nodes make the rendered graph larger and more difficult to read. --- <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-20 17:44:34 -05:00
yindo closed this issue 2026-02-20 17:44:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1377