[PR #580] [MERGED] serde: Handle unicode issues when encoding #1545

Closed
opened 2026-02-20 17:45:00 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/580
Author: @nfcampos
Created: 6/3/2024
Status: Merged
Merged: 6/3/2024
Merged by: @nfcampos

Base: mainHead: nc/3jun/serde-handle-unicode-issues


📝 Commits (1)

  • d22fe60 serde: Handle unicode issues when encoding

📊 Changes

5 files changed (+63 additions, -13 deletions)

View changed files

📝 langgraph/constants.py (+19 -2)
📝 langgraph/serde/jsonplus.py (+9 -4)
📝 tests/memory_assert.py (+6 -3)
📝 tests/test_jsonplus.py (+23 -2)
📝 tests/test_pregel.py (+6 -2)

📄 Description

  • any invalid utf-8 chars now removed on dumps
  • fix serialization of Send
  • remove serialization of NamedTuple, which doesn't work
  • add test for custom serde passed to memory saver
  • add test using Send and JsonPlus serde

🔄 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/langgraph/pull/580 **Author:** [@nfcampos](https://github.com/nfcampos) **Created:** 6/3/2024 **Status:** ✅ Merged **Merged:** 6/3/2024 **Merged by:** [@nfcampos](https://github.com/nfcampos) **Base:** `main` ← **Head:** `nc/3jun/serde-handle-unicode-issues` --- ### 📝 Commits (1) - [`d22fe60`](https://github.com/langchain-ai/langgraph/commit/d22fe60d4cd64074195cb02b6509429339a9d683) serde: Handle unicode issues when encoding ### 📊 Changes **5 files changed** (+63 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `langgraph/constants.py` (+19 -2) 📝 `langgraph/serde/jsonplus.py` (+9 -4) 📝 `tests/memory_assert.py` (+6 -3) 📝 `tests/test_jsonplus.py` (+23 -2) 📝 `tests/test_pregel.py` (+6 -2) </details> ### 📄 Description - any invalid utf-8 chars now removed on dumps - fix serialization of Send - remove serialization of NamedTuple, which doesn't work - add test for custom serde passed to memory saver - add test using Send and JsonPlus serde --- <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-20 17:45:00 -05:00
yindo closed this issue 2026-02-20 17:45:00 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1545