[PR #386] [MERGED] langgraph[patch]: Adds inputDefinition and outputDefinition properties to compiled graph #714

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/386
Author: @jacoblee93
Created: 8/27/2024
Status: Merged
Merged: 8/30/2024
Merged by: @jacoblee93

Base: mainHead: jacob/io


📝 Commits (8)

📊 Changes

11 files changed (+292 additions, -76 deletions)

View changed files

📝 libs/langgraph/src/graph/graph.ts (+1 -2)
📝 libs/langgraph/src/graph/index.ts (+5 -1)
📝 libs/langgraph/src/graph/state.ts (+142 -27)
📝 libs/langgraph/src/prebuilt/react_agent_executor.ts (+1 -2)
📝 libs/langgraph/src/pregel/algo.ts (+2 -1)
📝 libs/langgraph/src/pregel/index.ts (+4 -2)
📝 libs/langgraph/src/pregel/loop.ts (+34 -38)
📝 libs/langgraph/src/pregel/types.ts (+1 -2)
📝 libs/langgraph/src/pregel/validate.ts (+1 -1)
📝 libs/langgraph/src/tests/pregel.test.ts (+100 -0)
📝 libs/langgraph/src/web.ts (+1 -0)

📄 Description

This is a stopgap until we figure out a good way to implement schema support in core - unclear if we should use Zod or if there's even a way to generate Zod schema from a StateDefinition.

Maybe the best long term thing is to even just use a type.

Also does a bit of housecleaning (removes Pregel as an input to the loop to match Python and remove the implicit circular dep)


🔄 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/386 **Author:** [@jacoblee93](https://github.com/jacoblee93) **Created:** 8/27/2024 **Status:** ✅ Merged **Merged:** 8/30/2024 **Merged by:** [@jacoblee93](https://github.com/jacoblee93) **Base:** `main` ← **Head:** `jacob/io` --- ### 📝 Commits (8) - [`b386a0c`](https://github.com/langchain-ai/langgraphjs/commit/b386a0c48ecf775f6259a82a9c0f1497f383c497) Adds inputDefinition and outputDefinition properties to compiled state graph - [`3fe176f`](https://github.com/langchain-ai/langgraphjs/commit/3fe176f3657c9f6ce7493f24c4dbf41e92883519) Update libs/langgraph/src/pregel/loop.ts - [`b8cbcef`](https://github.com/langchain-ai/langgraphjs/commit/b8cbcef2000dfbd53d051e97628b2f5a73eb15ba) Merge - [`91e8d8f`](https://github.com/langchain-ai/langgraphjs/commit/91e8d8fc2d145cf098e08ac792816cd1c7e3809d) Merge branch 'jacob/io' of https://github.com/langchain-ai/langgraphjs into jacob/io - [`d4e2fab`](https://github.com/langchain-ai/langgraphjs/commit/d4e2fab59886e3dc86a6398cd62c684efbec8754) Merge - [`e5488b7`](https://github.com/langchain-ai/langgraphjs/commit/e5488b7fda1a3c4ae42f8834a77e2dda0d5b86cc) Update param passing - [`376bf8c`](https://github.com/langchain-ai/langgraphjs/commit/376bf8cde331a4d00d3eb20188a13a969b1a317f) Add generic typing, fix filtering of outputs - [`c1ebeaf`](https://github.com/langchain-ai/langgraphjs/commit/c1ebeaf128cdddd4e3b696a1f3aabb70d455984b) Fix check ### 📊 Changes **11 files changed** (+292 additions, -76 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/graph/graph.ts` (+1 -2) 📝 `libs/langgraph/src/graph/index.ts` (+5 -1) 📝 `libs/langgraph/src/graph/state.ts` (+142 -27) 📝 `libs/langgraph/src/prebuilt/react_agent_executor.ts` (+1 -2) 📝 `libs/langgraph/src/pregel/algo.ts` (+2 -1) 📝 `libs/langgraph/src/pregel/index.ts` (+4 -2) 📝 `libs/langgraph/src/pregel/loop.ts` (+34 -38) 📝 `libs/langgraph/src/pregel/types.ts` (+1 -2) 📝 `libs/langgraph/src/pregel/validate.ts` (+1 -1) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+100 -0) 📝 `libs/langgraph/src/web.ts` (+1 -0) </details> ### 📄 Description This is a stopgap until we figure out a good way to implement schema support in core - unclear if we should use Zod or if there's even a way to generate Zod schema from a `StateDefinition`. Maybe the best long term thing is to even just use a type. Also does a bit of housecleaning (removes Pregel as an input to the loop to match Python and remove the implicit circular dep) --- <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:15:38 -05:00
yindo closed this issue 2026-02-15 19:15:38 -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#714