[PR #761] [MERGED] Add support for using Context channel in StateGraph #1655

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/761
Author: @nfcampos
Created: 6/21/2024
Status: Merged
Merged: 6/21/2024
Merged by: @nfcampos

Base: mainHead: nc/21jun/state-context


📝 Commits (2)

  • d4e715c Add support for using Context channel in StateGraph
  • d53bd47 Fix handling of asynccontextmanager funcs

📊 Changes

17 files changed (+222 additions, -139 deletions)

View changed files

📝 libs/langgraph/langgraph/channels/any_value.py (+2 -1)
📝 libs/langgraph/langgraph/channels/base.py (+4 -3)
📝 libs/langgraph/langgraph/channels/binop.py (+2 -1)
📝 libs/langgraph/langgraph/channels/context.py (+39 -31)
📝 libs/langgraph/langgraph/channels/dynamic_barrier_value.py (+4 -1)
📝 libs/langgraph/langgraph/channels/ephemeral_value.py (+2 -1)
📝 libs/langgraph/langgraph/channels/last_value.py (+2 -1)
📝 libs/langgraph/langgraph/channels/manager.py (+19 -20)
📝 libs/langgraph/langgraph/channels/named_barrier_value.py (+2 -1)
📝 libs/langgraph/langgraph/channels/topic.py (+4 -1)
📝 libs/langgraph/langgraph/graph/state.py (+24 -13)
📝 libs/langgraph/langgraph/managed/few_shot.py (+4 -2)
📝 libs/langgraph/langgraph/pregel/__init__.py (+31 -17)
📝 libs/langgraph/tests/__snapshots__/test_pregel.ambr (+6 -6)
📝 libs/langgraph/tests/test_channels.py (+42 -38)
📝 libs/langgraph/tests/test_pregel.py (+8 -1)
📝 libs/langgraph/tests/test_pregel_async.py (+27 -1)

📄 Description

No description provided


🔄 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/761 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 6/21/2024 **Status:** ✅ Merged **Merged:** 6/21/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/21jun/state-context` --- ### 📝 Commits (2) - [`d4e715c`](https://github.com/langchain-ai/langgraph/commit/d4e715cfe8d3e0334f713e243d910e4af2e0d2b7) Add support for using Context channel in StateGraph - [`d53bd47`](https://github.com/langchain-ai/langgraph/commit/d53bd47ee247d4b7f3bccdba9566b4814fcd7565) Fix handling of asynccontextmanager funcs ### 📊 Changes **17 files changed** (+222 additions, -139 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/langgraph/channels/any_value.py` (+2 -1) 📝 `libs/langgraph/langgraph/channels/base.py` (+4 -3) 📝 `libs/langgraph/langgraph/channels/binop.py` (+2 -1) 📝 `libs/langgraph/langgraph/channels/context.py` (+39 -31) 📝 `libs/langgraph/langgraph/channels/dynamic_barrier_value.py` (+4 -1) 📝 `libs/langgraph/langgraph/channels/ephemeral_value.py` (+2 -1) 📝 `libs/langgraph/langgraph/channels/last_value.py` (+2 -1) 📝 `libs/langgraph/langgraph/channels/manager.py` (+19 -20) 📝 `libs/langgraph/langgraph/channels/named_barrier_value.py` (+2 -1) 📝 `libs/langgraph/langgraph/channels/topic.py` (+4 -1) 📝 `libs/langgraph/langgraph/graph/state.py` (+24 -13) 📝 `libs/langgraph/langgraph/managed/few_shot.py` (+4 -2) 📝 `libs/langgraph/langgraph/pregel/__init__.py` (+31 -17) 📝 `libs/langgraph/tests/__snapshots__/test_pregel.ambr` (+6 -6) 📝 `libs/langgraph/tests/test_channels.py` (+42 -38) 📝 `libs/langgraph/tests/test_pregel.py` (+8 -1) 📝 `libs/langgraph/tests/test_pregel_async.py` (+27 -1) </details> ### 📄 Description _No description provided_ --- <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:45:14 -05:00
yindo closed this issue 2026-02-20 17:45:14 -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#1655