[PR #3361] docs(messages): add serialization section with dump/load examples #3415

Open
opened 2026-06-05 18:23:01 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/docs/pull/3361
Author: @JadenKim-dev
Created: 3/28/2026
Status: 🔄 Open

Base: mainHead: docs/add-serialization-section-to-messages


📝 Commits (2)

  • 2cdc787 docs(messages): add serialization section with dump/load examples
  • 04dcd50 fix(messages): use langchain re-exports instead of langchain_core imports

📊 Changes

1 file changed (+48 additions, -0 deletions)

View changed files

📝 src/oss/langchain/messages.mdx (+48 -0)

📄 Description

Overview

Adds a "Serialization" section to the messages guide covering how to serialize and deserialize LangChain message objects using dump()/load() (JS) and dumpd()/load() (Python). This addresses a long-standing gap where there was no documentation on persisting messages to a database and restoring them.

Type of change

Type: Update existing documentation

Related issues/PRs

Checklist

  • I have read the contributing guidelines, including the language policy
  • I have tested my changes locally using docs dev
  • All code examples have been tested and work correctly
  • I have used root relative paths for internal links
  • I have updated navigation in src/docs.json if needed

🔄 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/docs/pull/3361 **Author:** [@JadenKim-dev](https://github.com/JadenKim-dev) **Created:** 3/28/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/add-serialization-section-to-messages` --- ### 📝 Commits (2) - [`2cdc787`](https://github.com/langchain-ai/docs/commit/2cdc787051c8a08cce08585401b26bbbd5f91d47) docs(messages): add serialization section with dump/load examples - [`04dcd50`](https://github.com/langchain-ai/docs/commit/04dcd5028b47a68947a0a1057e6a27e5f80ad149) fix(messages): use langchain re-exports instead of langchain_core imports ### 📊 Changes **1 file changed** (+48 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/oss/langchain/messages.mdx` (+48 -0) </details> ### 📄 Description ## Overview Adds a "Serialization" section to the messages guide covering how to serialize and deserialize LangChain message objects using `dump()`/`load()` (JS) and `dumpd()`/`load()` (Python). This addresses a long-standing gap where there was no documentation on persisting messages to a database and restoring them. ## Type of change **Type:** Update existing documentation ## Related issues/PRs - GitHub issue: langchain-ai/langchainjs#10472 - Feature PR: langchain-ai/langchainjs#10542 ## Checklist - [x] I have read the [contributing guidelines](README.md), including the [language policy](https://docs.langchain.com/oss/python/contributing/overview#language-policy) - [x] I have tested my changes locally using `docs dev` - [x] All code examples have been tested and work correctly - [x] I have used **root relative** paths for internal links - [x] I have updated navigation in `src/docs.json` if needed --- <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-06-05 18:23:01 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/docs#3415