[PR #1203] [MERGED] feat: MessagesZodSchema #1296

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1203
Author: @hntrl
Created: 5/21/2025
Status: Merged
Merged: 5/22/2025
Merged by: @dqbd

Base: mainHead: hunter/zod-message-state


📝 Commits (10+)

  • 7f6562a feat(langgraph): add zod messages state utility
  • 45213cb chore(docs): add zod messages state callout
  • 34c89f6 chore(langgraph): zod messages lint & format
  • 48faa27 fix(langgraph): use non-prototype reducer for zod messages prebuilt
  • 4909b61 fix(docs): wrong backlink for zod state callout
  • 6e8cf36 chore(langgraph): walk back docs on zod intersections
  • 38f5292 feat(langgraph): add MessagesZodState tests
  • e847a5d chore(langgraph): add note about failing test
  • ccf8394 chore(langgraph): simplify zod state schema reducer signature
  • c216eaf chore(langgraph): remove unused import

📊 Changes

4 files changed (+168 additions, -11 deletions)

View changed files

📝 docs/docs/concepts/low_level.md (+24 -9)
📝 libs/langgraph/src/graph/messages_annotation.ts (+51 -0)
📝 libs/langgraph/src/tests/prebuilt.test.ts (+89 -1)
📝 libs/langgraph/src/web.ts (+4 -1)

📄 Description

Adds a zod-based graph state utility that mimics MessagesAnnotation


🔄 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/1203 **Author:** [@hntrl](https://github.com/hntrl) **Created:** 5/21/2025 **Status:** ✅ Merged **Merged:** 5/22/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `hunter/zod-message-state` --- ### 📝 Commits (10+) - [`7f6562a`](https://github.com/langchain-ai/langgraphjs/commit/7f6562ab4e94747e40f790eab2937306096967e5) feat(langgraph): add zod messages state utility - [`45213cb`](https://github.com/langchain-ai/langgraphjs/commit/45213cb30f10eb7dbfa99d56e05c3feb6eadf48a) chore(docs): add zod messages state callout - [`34c89f6`](https://github.com/langchain-ai/langgraphjs/commit/34c89f6678b17f2233d19306a98517a15995d2f5) chore(langgraph): zod messages lint & format - [`48faa27`](https://github.com/langchain-ai/langgraphjs/commit/48faa271d8f710ddb3da99bb6c6a78650d144dd8) fix(langgraph): use non-prototype reducer for zod messages prebuilt - [`4909b61`](https://github.com/langchain-ai/langgraphjs/commit/4909b61b18bb785e54e1e795c65bf383781b088a) fix(docs): wrong backlink for zod state callout - [`6e8cf36`](https://github.com/langchain-ai/langgraphjs/commit/6e8cf363869910bd0432080eff710c38514c078c) chore(langgraph): walk back docs on zod intersections - [`38f5292`](https://github.com/langchain-ai/langgraphjs/commit/38f52927d896e9048c6589006cfed412f83e3186) feat(langgraph): add MessagesZodState tests - [`e847a5d`](https://github.com/langchain-ai/langgraphjs/commit/e847a5d70109b8fceab916d691a3d9073ef080a6) chore(langgraph): add note about failing test - [`ccf8394`](https://github.com/langchain-ai/langgraphjs/commit/ccf83943293dd6800fd67ce7389ba6be7cc784db) chore(langgraph): simplify zod state schema reducer signature - [`c216eaf`](https://github.com/langchain-ai/langgraphjs/commit/c216eaf8976981bdfe840d077b7d524df4f32206) chore(langgraph): remove unused import ### 📊 Changes **4 files changed** (+168 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `docs/docs/concepts/low_level.md` (+24 -9) 📝 `libs/langgraph/src/graph/messages_annotation.ts` (+51 -0) 📝 `libs/langgraph/src/tests/prebuilt.test.ts` (+89 -1) 📝 `libs/langgraph/src/web.ts` (+4 -1) </details> ### 📄 Description Adds a zod-based graph state utility that mimics `MessagesAnnotation` --- <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:09 -05:00
yindo closed this issue 2026-02-15 20:15:09 -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#1296