Skip to content

.NET: Update to latest MEAI 10.0.1 and OpenAI 2.7.0 - #2392

Merged
Roger Barreto (rogerbarreto) merged 1 commit into
microsoft:mainfrom
stephentoub:updatemeai
Nov 24, 2025
Merged

.NET: Update to latest MEAI 10.0.1 and OpenAI 2.7.0#2392
Roger Barreto (rogerbarreto) merged 1 commit into
microsoft:mainfrom
stephentoub:updatemeai

Conversation

@stephentoub

Copy link
Copy Markdown
Member

No description provided.

CopilotAI 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 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
FileDescription
dotnet/Directory.Packages.propsUpdated 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.csAdded type cast to ResponseContinuationToken when assigning continuation token from AgentRunOptions to ChatOptions
dotnet/src/Microsoft.Agents.AI.Abstractions/AgentRunResponseExtensions.csAdded type casts to ResponseContinuationToken when creating ChatResponse and ChatResponseUpdate from agent run responses
dotnet/tests/Microsoft.Agents.AI.UnitTests/ChatClient/ChatClientAgentTests.csUpdated test setup to create ResponseContinuationToken instances using FromBytes() instead of creating plain objects
dotnet/tests/Microsoft.Agents.AI.Abstractions.UnitTests/AgentRunResponseUpdateTests.csUpdated test to create ResponseContinuationToken instance using FromBytes() method

@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to failed status checks Nov 24, 2025
@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to failed status checks Nov 24, 2025
Merged via the queue into microsoft:main with commit a116edaNov 24, 2025
14 checks passed
Aris Nguyen (arisng) pushed a commit to arisng/agent-framework that referenced this pull request Feb 2, 2026
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

.NETUsage: [Issues, PRs], Target: .Net

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@stephentoub@javiercn@rogerbarreto@SergeyMenshykh@markwallace-microsoft