Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request introduces a new Formatter class to standardize serialization and normalization of node inputs and outputs in the langgraphics visualization tool. The PR replaces ad-hoc message preview logic with a more structured approach and adds markdown rendering capabilities for better UI presentation.
Changes:
- Introduced
Formatterclass inlanggraphics/formatter.pywith methods for serializing and normalizing Run objects - Updated
langgraphics/streamer.pyto use the newFormatterinstead of oldpreviewandparse_messagefunctions - Enhanced the web UI to parse and display messages as structured objects with markdown rendering using react-markdown
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 19 comments.
Show a summary per file
| File | Description |
|---|---|
| pyproject.toml | Version bump from 0.1.0-beta.1 to 0.1.0-beta.2 |
| langgraphics/formatter.py | New file implementing Formatter class with serialization and normalization logic for different run types |
| langgraphics/streamer.py | Refactored to use Formatter.inputs() and Formatter.outputs() methods, removing old helper functions |
| langgraphics-web/src/index.css | Added new CSS variables and styling for tags, borders, and role-specific coloring; moved margin/padding rules |
| langgraphics-web/src/components/InspectPanel.tsx | Added ReactMarkdown integration and structured parsing of system/input/output messages with role-based rendering |
| langgraphics-web/package.json | Added react-markdown@^10.1.0 dependency |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Formatterclass inlanggraphics/formatter.pyto provide standardized serialization and normalization of node inputs and outputs, replacing the previous ad-hoc message preview logic. This ensures consistent formatting and easier downstream consumption.langgraphics/streamer.pyto use the newFormatterfor serializing node inputs and outputs, removing the oldpreviewandparse_messagefunctions, and simplifying error handling.react-markdowndependency.