[PR #512] [CLOSED] WIP: Implement types for Pregel.stream using recursive type #815

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/512
Author: @nfcampos
Created: 9/23/2024
Status: Closed

Base: mainHead: nc/23sep/stream-output


📝 Commits (10+)

  • f6b1d52 WIP: Implement types for Pregel.stream using recursive type
  • 7b24c92 no longer excessively deep nor possibly infinite
  • 92184d1 specified debug output type
  • 24eb241 all tests passing!
  • 278517c all tests passing!
  • a387043 formatting
  • 6cb8766 cleared out StrRecord type
  • 7773c04 clearer type parameters for channels and nodes
  • 7423be5 need to type the values stored in pregel loop
  • 75af108 formatting

📊 Changes

8 files changed (+482 additions, -249 deletions)

View changed files

📝 libs/langgraph/src/channels/base.ts (+5 -5)
📝 libs/langgraph/src/graph/graph.ts (+51 -42)
📝 libs/langgraph/src/graph/state.ts (+92 -40)
📝 libs/langgraph/src/pregel/algo.ts (+66 -49)
📝 libs/langgraph/src/pregel/index.ts (+81 -74)
📝 libs/langgraph/src/pregel/loop.ts (+2 -2)
📝 libs/langgraph/src/pregel/types.ts (+169 -21)
📝 libs/langgraph/src/pregel/validate.ts (+16 -16)

📄 Description

Fixes # (issue)


🔄 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/512 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 9/23/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `nc/23sep/stream-output` --- ### 📝 Commits (10+) - [`f6b1d52`](https://github.com/langchain-ai/langgraphjs/commit/f6b1d52e202eef96a86ab311ecd53a34ba0113b4) WIP: Implement types for Pregel.stream using recursive type - [`7b24c92`](https://github.com/langchain-ai/langgraphjs/commit/7b24c925ddae7454cc1a89c2ddc5486362566792) no longer excessively deep nor possibly infinite - [`92184d1`](https://github.com/langchain-ai/langgraphjs/commit/92184d13b37023bc294bfc5ef2ec15e9f75607d0) specified debug output type - [`24eb241`](https://github.com/langchain-ai/langgraphjs/commit/24eb24170f604d3f16bdc1e61cd3bf1ad126b1c2) all tests passing! - [`278517c`](https://github.com/langchain-ai/langgraphjs/commit/278517c0a4be8c10b9a9f8d55a468b815c7e9873) all tests passing! - [`a387043`](https://github.com/langchain-ai/langgraphjs/commit/a387043e0f1a25f61b29e3e436805d3c2954d12f) formatting - [`6cb8766`](https://github.com/langchain-ai/langgraphjs/commit/6cb87666dab8badf85c5c4f76bb3c6930d0e37a1) cleared out StrRecord type - [`7773c04`](https://github.com/langchain-ai/langgraphjs/commit/7773c049f43d1492cf3f77dfea51acc72f1e8548) clearer type parameters for channels and nodes - [`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 ### 📊 Changes **8 files changed** (+482 additions, -249 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/channels/base.ts` (+5 -5) 📝 `libs/langgraph/src/graph/graph.ts` (+51 -42) 📝 `libs/langgraph/src/graph/state.ts` (+92 -40) 📝 `libs/langgraph/src/pregel/algo.ts` (+66 -49) 📝 `libs/langgraph/src/pregel/index.ts` (+81 -74) 📝 `libs/langgraph/src/pregel/loop.ts` (+2 -2) 📝 `libs/langgraph/src/pregel/types.ts` (+169 -21) 📝 `libs/langgraph/src/pregel/validate.ts` (+16 -16) </details> ### 📄 Description <!-- Thank you for contributing to LangGraph.js! Your PR will appear in our next release under the title you set above. Please make sure it highlights your valuable contribution. To help streamline the review process, please make sure you read our contribution guidelines: https://github.com/langchain-ai/langgraphjs/blob/main/CONTRIBUTING.md Replace this block with a description of the change, the issue it fixes (if applicable), and relevant context. Finally, we'd love to show appreciation for your contribution - if you'd like us to shout you out on Twitter, please also include your handle below! --> <!-- Remove if not applicable --> Fixes # (issue) --- <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:00 -05:00
yindo closed this issue 2026-02-15 19:16:00 -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#815