Skip to content

feat: add MessageExporter for extracting conversation messages from c… #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2025

Conversation

bsbodden
Copy link
Contributor

…heckpoints (#73)

  • Implement MessageExporter class for extracting messages from Redis checkpoints
  • Add LangChainRecipe for handling LangChain message formats (HumanMessage, AIMessage, etc.)
  • Support both single checkpoint export and full thread export
  • Use orjson for efficient JSON processing

…heckpoints (#73)

- Implement MessageExporter class for extracting messages from Redis checkpoints
- Add LangChainRecipe for handling LangChain message formats (HumanMessage, AIMessage, etc.)
- Support both single checkpoint export and full thread export
- Use orjson for efficient JSON processing
@bsbodden bsbodden requested a review from Copilot August 14, 2025 23:24
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a MessageExporter system for extracting conversation messages from Redis checkpoints, enabling easy export of message data for analysis or migration purposes.

  • Adds MessageExporter class with support for single checkpoint and full thread exports
  • Implements LangChainRecipe for handling various LangChain message formats
  • Provides extensible recipe system for custom message formats

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
langgraph/checkpoint/redis/message_exporter.py Core MessageExporter implementation with LangChainRecipe for message extraction
tests/test_message_exporter.py Unit tests for MessageExporter and LangChainRecipe functionality
tests/test_message_exporter_integration.py Integration tests demonstrating real-world usage scenarios
langgraph/checkpoint/redis/__init__.py Exports new MessageExporter classes for public API

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@bsbodden bsbodden merged commit 618f494 into main Aug 14, 2025
19 checks passed
@bsbodden bsbodden deleted the bsb/issue-73 branch August 14, 2025 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant