[PR #131] [MERGED] Rewrite Graph.compile() to delegate to new CompiledGraph methods #512

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/131
Author: @nfcampos
Created: 5/13/2024
Status: Merged
Merged: 5/13/2024
Merged by: @nfcampos

Base: mainHead: nc/13may/compiled-graph


📝 Commits (2)

  • db1f5e0 Rewrite Graph.compile() to delegate to new CompiledGraph methods
  • 5592c17 Rewrite StateGraph.compile and and MessageGraph.compile to delegate to new CompiledStateGraph methods (#132)

📊 Changes

11 files changed (+697 additions, -524 deletions)

View changed files

📝 langgraph/src/graph/graph.ts (+250 -135)
📝 langgraph/src/graph/index.ts (+2 -2)
📝 langgraph/src/graph/state.ts (+208 -164)
📝 langgraph/src/prebuilt/chat_agent_executor.ts (+11 -3)
📝 langgraph/src/pregel/index.ts (+52 -32)
📝 langgraph/src/pregel/io.ts (+39 -63)
📝 langgraph/src/pregel/read.ts (+12 -20)
📝 langgraph/src/pregel/validate.ts (+5 -4)
📝 langgraph/src/pregel/write.ts (+21 -21)
📝 langgraph/src/tests/prebuilt.test.ts (+58 -12)
📝 langgraph/src/tests/pregel.test.ts (+39 -68)

📄 Description

  • enables more dynamic graphs in the future
  • enables conditional edges returning multiple destinations

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/131 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 5/13/2024 **Status:** ✅ Merged **Merged:** 5/13/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/13may/compiled-graph` --- ### 📝 Commits (2) - [`db1f5e0`](https://github.com/langchain-ai/langgraphjs/commit/db1f5e024b364a5671d1a6365ce25d6f5b4b3504) Rewrite Graph.compile() to delegate to new CompiledGraph methods - [`5592c17`](https://github.com/langchain-ai/langgraphjs/commit/5592c17e4305c6f5bb64623c557a6dea4133674a) Rewrite StateGraph.compile and and MessageGraph.compile to delegate to new CompiledStateGraph methods (#132) ### 📊 Changes **11 files changed** (+697 additions, -524 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/src/graph/graph.ts` (+250 -135) 📝 `langgraph/src/graph/index.ts` (+2 -2) 📝 `langgraph/src/graph/state.ts` (+208 -164) 📝 `langgraph/src/prebuilt/chat_agent_executor.ts` (+11 -3) 📝 `langgraph/src/pregel/index.ts` (+52 -32) 📝 `langgraph/src/pregel/io.ts` (+39 -63) 📝 `langgraph/src/pregel/read.ts` (+12 -20) 📝 `langgraph/src/pregel/validate.ts` (+5 -4) 📝 `langgraph/src/pregel/write.ts` (+21 -21) 📝 `langgraph/src/tests/prebuilt.test.ts` (+58 -12) 📝 `langgraph/src/tests/pregel.test.ts` (+39 -68) </details> ### 📄 Description - enables more dynamic graphs in the future - enables conditional edges returning multiple destinations <!-- 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 18:17:14 -05:00
yindo closed this issue 2026-02-15 18:17: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/langgraphjs#512