-
Notifications
You must be signed in to change notification settings - Fork 1.1k
.NET: Update Microsoft.Extensions.AI.* packages to 10.2.0 #3211
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
.NET: Update Microsoft.Extensions.AI.* packages to 10.2.0 #3211
Conversation
… tests Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
There was a problem hiding this 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 |
|
@copilot, please merge in main and address the merge conflict |
Merged main and resolved the conflict in |
* Initial plan * Update Microsoft.Extensions.AI.* to 10.2.0 and fix timestamp behavior tests Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
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:Transitive dependencies bumped to satisfy new requirements:
Microsoft.Bcl.AsyncInterfaces10.0.1 → 10.0.2Microsoft.Extensions.DependencyInjection.Abstractions10.0.1 → 10.0.2Microsoft.Extensions.Logging.Abstractions10.0.1 → 10.0.2System.Diagnostics.DiagnosticSource10.0.1 → 10.0.2System.Text.Json10.0.1 → 10.0.2System.Threading.Channels10.0.1 → 10.0.2Test updates:
The 10.2.0 release changed timestamp coalescing behavior in
ToChatResponse()from "latest timestamp wins" to "first non-null valid timestamp wins". UpdatedAgentResponseUpdateExtensionsTests.csto reflect this upstream behavioral change:Contribution Checklist
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.