Skip to content

Conversation

@stephentoub
Copy link
Member

No description provided.

@github-actions github-actions bot changed the title Update to latest MEAI 10.0.1 and OpenAI 2.7.0 .NET: Update to latest MEAI 10.0.1 and OpenAI 2.7.0 Nov 22, 2025
Copilot finished reviewing on behalf of stephentoub November 22, 2025 04:45
Copy link
Contributor

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 updates the Microsoft.Extensions.AI packages from version 10.0.0 to 10.0.1 and OpenAI from 2.6.0 to 2.7.0, adapting the codebase to handle breaking changes in how continuation tokens are typed in the updated MEAI library.

Key Changes:

  • Updated package versions for Microsoft.Extensions.AI ecosystem and OpenAI SDK
  • Added type casts (as ResponseContinuationToken) in production code to handle the change from object? to ResponseContinuationToken? in MEAI's ChatOptions, ChatResponse, and ChatResponseUpdate
  • Updated unit tests to create proper ResponseContinuationToken instances using ResponseContinuationToken.FromBytes() instead of new object()

Reviewed changes

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

Show a summary per file
File Description
dotnet/Directory.Packages.props Updated package versions for Microsoft.Extensions.AI (10.0.0 → 10.0.1), Microsoft.Extensions.AI.OpenAI, OpenAI (2.6.0 → 2.7.0), System.ClientModel (1.8.0 → 1.8.1), and Azure.AI.Projects.OpenAI
dotnet/src/Microsoft.Agents.AI/ChatClient/ChatClientAgent.cs Added type cast to ResponseContinuationToken when assigning continuation token from AgentRunOptions to ChatOptions
dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunResponseExtensions.cs Added type casts to ResponseContinuationToken when creating ChatResponse and ChatResponseUpdate from agent run responses
dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientAgentTests.cs Updated test setup to create ResponseContinuationToken instances using FromBytes() instead of creating plain objects
dotnet/tests/Microsoft.Agents.AI.Abstractions.UnitTests/AgentRunResponseUpdateTests.cs Updated test to create ResponseContinuationToken instance using FromBytes() method

@stephentoub stephentoub added this pull request to the merge queue Nov 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 24, 2025
@stephentoub stephentoub added this pull request to the merge queue Nov 24, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 24, 2025
@rogerbarreto rogerbarreto added this pull request to the merge queue Nov 24, 2025
Merged via the queue into microsoft:main with commit a116eda Nov 24, 2025
14 checks passed
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.

5 participants