Skip to content

Added ConversationAccountConverter #277

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 3 commits into from
May 12, 2025

Conversation

tracyboehrer
Copy link
Member

Fixes #276

@Copilot Copilot AI review requested due to automatic review settings May 12, 2025 16:25
@tracyboehrer tracyboehrer requested a review from a team as a code owner May 12, 2025 16:25
@github-actions github-actions bot added ML: Core Tags changes to core libraries ML: Tests Tags changes to tests labels May 12, 2025
@tracyboehrer tracyboehrer enabled auto-merge May 12, 2025 16:25
Copy link
Contributor

@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 pull request adds support for converting ConversationAccount objects during JSON serialization and deserialization, and includes a new test to ensure round-trip consistency.

  • Added unit tests to verify ConversationAccount round-trip serialization
  • Registered the new ConversationAccountConverter in the serialization pipeline
  • Implemented the ConversationAccountConverter to handle extension data

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/tests/Microsoft.Agents.Model.Tests/ConversationAccountTests.cs Added unit tests validating JSON round-trip serialization for ConversationAccount
src/libraries/Core/Microsoft.Agents.Core/Serialization/ProtocolJsonSerializer.cs Registered ConversationAccountConverter with the JSON serializer options
src/libraries/Core/Microsoft.Agents.Core/Serialization/Converters/ConversationAccountConverter.cs Implemented a converter to process ConversationAccount extension data

@tracyboehrer tracyboehrer merged commit 139b4ca into main May 12, 2025
8 checks passed
@tracyboehrer tracyboehrer deleted the users/tracyboehrer/conversationaccount-covnerter branch May 12, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ML: Core Tags changes to core libraries ML: Tests Tags changes to tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing ConversationAccount converter
2 participants