[PR #1751] [MERGED] Add stream_mode=messages #2277

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/1751
Author: @nfcampos
Created: 9/17/2024
Status: Merged
Merged: 9/18/2024
Merged by: @nfcampos

Base: mainHead: nc/17sep/stream-messages


📝 Commits (3)

📊 Changes

8 files changed (+711 additions, -140 deletions)

View changed files

📝 libs/langgraph/langgraph/pregel/__init__.py (+8 -1)
📝 libs/langgraph/langgraph/pregel/algo.py (+16 -15)
📝 libs/langgraph/langgraph/pregel/loop.py (+2 -3)
libs/langgraph/langgraph/pregel/messages.py (+167 -0)
📝 libs/langgraph/langgraph/pregel/types.py (+2 -1)
libs/langgraph/tests/fake_chat.py (+86 -0)
📝 libs/langgraph/tests/test_pregel.py (+237 -80)
📝 libs/langgraph/tests/test_pregel_async.py (+193 -40)

📄 Description

  • yields messages token-by-token from LLMs, and any messages returned from a node
  • messages are yielded as a tuple of (message, metadata)

🔄 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/1751 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 9/17/2024 **Status:** ✅ Merged **Merged:** 9/18/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/17sep/stream-messages` --- ### 📝 Commits (3) - [`01bb6cb`](https://github.com/langchain-ai/langgraph/commit/01bb6cbd4dcaa48474664d163dfc21c1c196a730) Add stream_mode=messages - [`c0d8493`](https://github.com/langchain-ai/langgraph/commit/c0d8493db5b5d248b8d1ee735fadf7594d5d6e8e) Only look at chain runs which are nodes - [`9235178`](https://github.com/langchain-ai/langgraph/commit/9235178c880a6bbccac745b590e68a6f9a36ed82) Finish ### 📊 Changes **8 files changed** (+711 additions, -140 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/langgraph/pregel/__init__.py` (+8 -1) 📝 `libs/langgraph/langgraph/pregel/algo.py` (+16 -15) 📝 `libs/langgraph/langgraph/pregel/loop.py` (+2 -3) ➕ `libs/langgraph/langgraph/pregel/messages.py` (+167 -0) 📝 `libs/langgraph/langgraph/pregel/types.py` (+2 -1) ➕ `libs/langgraph/tests/fake_chat.py` (+86 -0) 📝 `libs/langgraph/tests/test_pregel.py` (+237 -80) 📝 `libs/langgraph/tests/test_pregel_async.py` (+193 -40) </details> ### 📄 Description - yields messages token-by-token from LLMs, and any messages returned from a node - messages are yielded as a tuple of `(message, metadata)` --- <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:46:42 -05:00
yindo closed this issue 2026-02-20 17:46:42 -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#2277