feat: preserve conversation content-part metadata#1813
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates the uipath-core chat conversation models to preserve content-part metaData through Pydantic deserialization/serialization, keeping the wire alias (metaData) compatible with the existing conversation contract and adding a round-trip regression test.
Changes:
- Added
metadata(alias="metaData") toUiPathConversationContentPartDataso content-part metadata survives deserialization. - Added a unit test covering deserialize → model access → serialize (
by_alias=True) round-trip for content-part metadata. - Bumped
uipath-coreversion to0.5.31(and updated lockfile accordingly).
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/uipath-core/src/uipath/core/chat/content.py | Adds metadata field (wire alias metaData) to content-part data model to preserve metadata on round trips. |
| packages/uipath-core/tests/chat/test_message.py | Adds test asserting metaData is preserved on parse and emitted on dump with aliases. |
| packages/uipath-core/pyproject.toml | Version bump to 0.5.31. |
| packages/uipath-core/uv.lock | Lockfile updated for the version bump. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
a6eeaac to
67c5055
Compare
67c5055 to
71e7b98
Compare
|
🚨 Heads up:
|



Summary
Validation