[PR #252] [MERGED] Rename BaseChannel.empty() to BaseChannel.from_checkpoint() #1329

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/252
Author: @nfcampos
Created: 3/31/2024
Status: Merged
Merged: 4/1/2024
Merged by: @nfcampos

Base: mainHead: nc/31mar/channel-from-checkpoint-copy


📝 Commits (1)

  • 4fd90f8 Rename BaseChannel.empty() to BaseChannel.from_checkpoint()

📊 Changes

9 files changed (+119 additions, -88 deletions)

View changed files

📝 langgraph/channels/any_value.py (+9 -7)
📝 langgraph/channels/base.py (+23 -14)
📝 langgraph/channels/binop.py (+9 -7)
📝 langgraph/channels/context.py (+6 -6)
📝 langgraph/channels/ephemeral_value.py (+9 -7)
📝 langgraph/channels/last_value.py (+9 -7)
📝 langgraph/channels/named_barrier_value.py (+9 -7)
📝 langgraph/channels/topic.py (+6 -6)
📝 tests/test_channels.py (+39 -27)

📄 Description

  • clearer name
  • channels with complex data structures in checkpoint (eg a set or list) now copy the checkpointed data structures before creating the new channel

🔄 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/252 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 3/31/2024 **Status:** ✅ Merged **Merged:** 4/1/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/31mar/channel-from-checkpoint-copy` --- ### 📝 Commits (1) - [`4fd90f8`](https://github.com/langchain-ai/langgraph/commit/4fd90f8ad628740e0d3dd70f5dc6c844958db3c2) Rename BaseChannel.empty() to BaseChannel.from_checkpoint() ### 📊 Changes **9 files changed** (+119 additions, -88 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/channels/any_value.py` (+9 -7) 📝 `langgraph/channels/base.py` (+23 -14) 📝 `langgraph/channels/binop.py` (+9 -7) 📝 `langgraph/channels/context.py` (+6 -6) 📝 `langgraph/channels/ephemeral_value.py` (+9 -7) 📝 `langgraph/channels/last_value.py` (+9 -7) 📝 `langgraph/channels/named_barrier_value.py` (+9 -7) 📝 `langgraph/channels/topic.py` (+6 -6) 📝 `tests/test_channels.py` (+39 -27) </details> ### 📄 Description - clearer name - channels with complex data structures in checkpoint (eg a set or list) now copy the checkpointed data structures before creating the new channel --- <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:28 -05:00
yindo closed this issue 2026-02-20 17:44:28 -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#1329