Skip to content

.NET: Tweak AgentAbstractionsJsonUtilities to better match AIJsonUtilities#1094

Merged
stephentoub merged 1 commit into
microsoft:mainfrom
stephentoub:tweakjson
Oct 2, 2025
Merged

.NET: Tweak AgentAbstractionsJsonUtilities to better match AIJsonUtilities#1094
stephentoub merged 1 commit into
microsoft:mainfrom
stephentoub:tweakjson

Conversation

@stephentoub

Copy link
Copy Markdown
Member

Functional change includes setting the encoder used by the options and employing JsonStringEnumConverter.

Functional change includes setting the encoder used by the options and employing JsonStringEnumConverter.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 aligns the AgentAbstractionsJsonUtilities configuration with AIJsonUtilities by adding JavaScript encoder settings and enum string conversion support.

  • Adds UnsafeRelaxedJsonEscaping encoder for consistent JSON escaping behavior
  • Enables string-based enum serialization through JsonStringEnumConverter and UseStringEnumConverter
  • Updates access modifier for internal JSON context class

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
AgentAbstractionsJsonUtilities.cs Configures encoder settings, adds enum string conversion, and updates JSON context visibility
AgentAbstractionsJsonUtilitiesTests.cs Adds comprehensive unit tests for the new JSON serialization configuration

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

@stephentoub stephentoub enabled auto-merge October 2, 2025 01:47
@stephentoub stephentoub added this pull request to the merge queue Oct 2, 2025
Merged via the queue into microsoft:main with commit 3ae9065 Oct 2, 2025
15 checks passed
ReubenBond pushed a commit to ReubenBond/agent-framework that referenced this pull request Oct 28, 2025
…icrosoft#1094)

Functional change includes setting the encoder used by the options and employing JsonStringEnumConverter.
Arturo-Quiroga-MSFT pushed a commit to Arturo-Quiroga-MSFT/agent-framework-public that referenced this pull request Nov 23, 2025
…icrosoft#1094)

Functional change includes setting the encoder used by the options and employing JsonStringEnumConverter.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants