[PR #520] [MERGED] Some plumbing for a narrower stream output #818

Closed
opened 2026-02-15 19:16:01 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/520
Author: @Masstronaut
Created: 9/26/2024
Status: Merged
Merged: 9/27/2024
Merged by: @Masstronaut

Base: nc/23sep/stream-outputHead: allan/graph-output-types


📝 Commits (7)

  • 7423be5 need to type the values stored in pregel loop
  • 75af108 formatting
  • ab4e684 Only invoke remains!
  • 9dafb44 invoke maybe array return type
  • aed73d9 invoke return type needs narrowing still
  • 9dd5bc5 Invoke return types are happy
  • cd5a085 Swapped return type to use ChannelStateType

📊 Changes

4 files changed (+306 additions, -139 deletions)

View changed files

📝 libs/langgraph/src/graph/graph.ts (+51 -42)
📝 libs/langgraph/src/graph/state.ts (+92 -40)
📝 libs/langgraph/src/pregel/index.ts (+43 -34)
📝 libs/langgraph/src/pregel/types.ts (+120 -23)

📄 Description

Trying to get the stream output types narrowed


🔄 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/520 **Author:** [@Masstronaut](https://github.com/Masstronaut) **Created:** 9/26/2024 **Status:** ✅ Merged **Merged:** 9/27/2024 **Merged by:** [@Masstronaut](https://github.com/Masstronaut) **Base:** `nc/23sep/stream-output` ← **Head:** `allan/graph-output-types` --- ### 📝 Commits (7) - [`7423be5`](https://github.com/langchain-ai/langgraphjs/commit/7423be54cfe7d937bf1a3162e359b0a4a55d35ff) need to type the values stored in pregel loop - [`75af108`](https://github.com/langchain-ai/langgraphjs/commit/75af108605c6a0bcc4995f0e461a5e72f9567dcf) formatting - [`ab4e684`](https://github.com/langchain-ai/langgraphjs/commit/ab4e684dd72663e3c2347be5ac65fd1b6b36be8d) Only invoke remains! - [`9dafb44`](https://github.com/langchain-ai/langgraphjs/commit/9dafb44bce46469f2ecd6ab0cb32878ffb6e3600) invoke maybe array return type - [`aed73d9`](https://github.com/langchain-ai/langgraphjs/commit/aed73d951e43c42541b86b6c452bf790355c0c44) invoke return type needs narrowing still - [`9dd5bc5`](https://github.com/langchain-ai/langgraphjs/commit/9dd5bc5e9cbde51ae317fa18e42e739292dc353a) Invoke return types are happy - [`cd5a085`](https://github.com/langchain-ai/langgraphjs/commit/cd5a085ff7ee49cba13144b0f256b752eacdd74d) Swapped return type to use ChannelStateType ### 📊 Changes **4 files changed** (+306 additions, -139 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/graph/graph.ts` (+51 -42) 📝 `libs/langgraph/src/graph/state.ts` (+92 -40) 📝 `libs/langgraph/src/pregel/index.ts` (+43 -34) 📝 `libs/langgraph/src/pregel/types.ts` (+120 -23) </details> ### 📄 Description Trying to get the stream output types narrowed --- <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 19:16:01 -05:00
yindo closed this issue 2026-02-15 19:16:01 -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#818