[PR #1024] [MERGED] feat(pregel): add support for zod input / output schema #1180

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1024
Author: @dqbd
Created: 3/24/2025
Status: Merged
Merged: 3/25/2025
Merged by: @dqbd

Base: mainHead: dqbd/zod-io


📝 Commits (5)

  • 455ab97 feat(pregel):add support for zod input / output schema
  • 2c661db Fix schema
  • 86f4529 Fix test
  • 66966c8 Add input validation
  • 1ae12de Make the default input schema to be partial

📊 Changes

3 files changed (+155 additions, -9 deletions)

View changed files

📝 libs/langgraph/src/graph/state.ts (+121 -8)
📝 libs/langgraph/src/pregel/index.ts (+6 -1)
📝 libs/langgraph/src/tests/pregel.test.ts (+28 -0)

📄 Description

Supports defining input / output schema, with input schema validation being done when calling .invoke()

Related PRs:


🔄 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/1024 **Author:** [@dqbd](https://github.com/dqbd) **Created:** 3/24/2025 **Status:** ✅ Merged **Merged:** 3/25/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `dqbd/zod-io` --- ### 📝 Commits (5) - [`455ab97`](https://github.com/langchain-ai/langgraphjs/commit/455ab97a58bd8ea60f15272223ea968ace98f67d) feat(pregel):add support for zod input / output schema - [`2c661db`](https://github.com/langchain-ai/langgraphjs/commit/2c661dbcbf214ed0722db3dff0b4bb1147a4d71c) Fix schema - [`86f4529`](https://github.com/langchain-ai/langgraphjs/commit/86f4529bdbf9dae7e9c536171db53d9e28ca8ccb) Fix test - [`66966c8`](https://github.com/langchain-ai/langgraphjs/commit/66966c88ff0397eaf7af4d1f5ccac7c2b6ec24f3) Add input validation - [`1ae12de`](https://github.com/langchain-ai/langgraphjs/commit/1ae12deeaf91847ee3b1cc3566ec9a5ed27985ec) Make the default input schema to be partial ### 📊 Changes **3 files changed** (+155 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/src/graph/state.ts` (+121 -8) 📝 `libs/langgraph/src/pregel/index.ts` (+6 -1) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+28 -0) </details> ### 📄 Description Supports defining input / output schema, with input schema validation being done when calling `.invoke()` Related PRs: - https://github.com/langchain-ai/langgraphjs/pull/1025 - https://github.com/langchain-ai/langgraphjs/pull/1029 --- <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:17:34 -05:00
yindo closed this issue 2026-02-15 19:17:34 -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#1180