[PR #1209] [CLOSED] wip: allowing intersections as schema input #1301

Closed
opened 2026-02-15 20:15:10 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1209
Author: @hntrl
Created: 5/22/2025
Status: Closed

Base: mainHead: hunter/zod-intersection


📝 Commits (1)

  • 10c526f wip: allowing intersections as schema input

📊 Changes

5 files changed (+290 additions, -33 deletions)

View changed files

📝 docs/docs/concepts/low_level.md (+7 -1)
📝 libs/langgraph/src/graph/messages_annotation.ts (+13 -0)
📝 libs/langgraph/src/graph/zod/state.ts (+90 -32)
📝 libs/langgraph/src/tests/prebuilt.test.ts (+37 -0)
libs/langgraph/src/tests/zod.test.ts (+143 -0)

📄 Description

WIP, but this allows us to bring z.object().and() as a valid property to the StateGraph constructor


🔄 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/1209 **Author:** [@hntrl](https://github.com/hntrl) **Created:** 5/22/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `hunter/zod-intersection` --- ### 📝 Commits (1) - [`10c526f`](https://github.com/langchain-ai/langgraphjs/commit/10c526f9e936b806ef0faecfbfdd1822f389ff25) wip: allowing intersections as schema input ### 📊 Changes **5 files changed** (+290 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `docs/docs/concepts/low_level.md` (+7 -1) 📝 `libs/langgraph/src/graph/messages_annotation.ts` (+13 -0) 📝 `libs/langgraph/src/graph/zod/state.ts` (+90 -32) 📝 `libs/langgraph/src/tests/prebuilt.test.ts` (+37 -0) ➕ `libs/langgraph/src/tests/zod.test.ts` (+143 -0) </details> ### 📄 Description WIP, but this allows us to bring `z.object().and()` as a valid property to the `StateGraph` constructor --- <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 20:15:10 -05:00
yindo closed this issue 2026-02-15 20:15:10 -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#1301