Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 14, 2026

Motivation and Context

Updating to the latest Microsoft.Extensions.AI.* packages (10.2.0) on NuGet as requested.

Description

Package updates in dotnet/Directory.Packages.props:

Package Old Version New Version
Microsoft.Extensions.AI 10.1.1 10.2.0
Microsoft.Extensions.AI.Abstractions 10.1.1 10.2.0
Microsoft.Extensions.AI.OpenAI 10.1.1-preview.1.25612.2 10.2.0-preview.1.26063.2

Transitive dependencies bumped to satisfy new requirements:

  • Microsoft.Bcl.AsyncInterfaces 10.0.1 → 10.0.2
  • Microsoft.Extensions.DependencyInjection.Abstractions 10.0.1 → 10.0.2
  • Microsoft.Extensions.Logging.Abstractions 10.0.1 → 10.0.2
  • System.Diagnostics.DiagnosticSource 10.0.1 → 10.0.2
  • System.Text.Json 10.0.1 → 10.0.2
  • System.Threading.Channels 10.0.1 → 10.0.2

Test updates:

The 10.2.0 release changed timestamp coalescing behavior in ToChatResponse() from "latest timestamp wins" to "first non-null valid timestamp wins". Updated AgentRunResponseUpdateExtensionsTests.cs to reflect this upstream behavioral change:

  • Updated test timestamps from years 1-2 to realistic values (2024-2025)
  • Changed expected assertions to match first-timestamp-wins semantics

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • www.nuget.org
    • Triggering command: /home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Update to the latest versions of Microsoft.Extensions.AI.* on nuget (10.2.*)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

… tests

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Copilot AI changed the title [WIP] Update Microsoft.Extensions.AI packages to version 10.2 Update Microsoft.Extensions.AI.* packages to 10.2.0 Jan 14, 2026
Copilot AI requested a review from stephentoub January 14, 2026 02:18
@stephentoub stephentoub marked this pull request as ready for review January 14, 2026 02:22
@github-actions github-actions bot changed the title Update Microsoft.Extensions.AI.* packages to 10.2.0 .NET: Update Microsoft.Extensions.AI.* packages to 10.2.0 Jan 14, 2026
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.1.1 to 10.2.0 and adjusts tests to accommodate an upstream behavioral change in timestamp coalescing from "latest timestamp wins" to "first non-null valid timestamp wins".

Changes:

  • Updated Microsoft.Extensions.AI packages to 10.2.0
  • Bumped transitive dependencies (System.Text.Json, System.Threading.Channels, etc.) from 10.0.1 to 10.0.2
  • Modified test assertions and timestamps to reflect the new "first timestamp wins" behavior

Reviewed changes

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

File Description
dotnet/Directory.Packages.props Updated Microsoft.Extensions.AI.* packages to 10.2.0 and transitive dependencies to 10.0.2
dotnet/tests/Microsoft.Agents.AI.Abstractions.UnitTests/AgentRunResponseUpdateExtensionsTests.cs Updated test timestamps to realistic values and changed assertions to match new "first timestamp wins" behavior

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