Skip to content

.Net: Update to latest M.E.AI{.Abstractions} + OpenAI Related Packages#12685

Merged
stephentoub merged 7 commits into
microsoft:mainfrom
stephentoub:updatemeai
Jul 18, 2025
Merged

.Net: Update to latest M.E.AI{.Abstractions} + OpenAI Related Packages#12685
stephentoub merged 7 commits into
microsoft:mainfrom
stephentoub:updatemeai

Conversation

@stephentoub

@stephentoub stephentoub commented Jul 9, 2025

Copy link
Copy Markdown
Member

This pull request updates package dependencies, refactors the OpenAI Realtime demo to align with API changes, and modifies related unit tests to reflect these updates. The most significant changes include updating package versions, transitioning from the RealtimeConversation API to the Realtime API, and adjusting test logic to accommodate updated data structures.

Dependency Updates:

  • Updated Azure.AI.OpenAI to version 2.2.0-beta.5 and OpenAI to version 2.2.0. [1] [2]
  • Updated System.Text.Json to version 8.0.6.
  • Upgraded Microsoft.Extensions.AI and related libraries to version 9.7.1.

OpenAI Realtime Demo Refactor:

  • Replaced RealtimeConversationClient and related classes with RealtimeClient and its updated API. This includes changes to session initialization, configuration, and item handling in Program.cs. [1] [2] [3]
  • Adjusted method calls and data types to align with the new API, such as replacing ConversationItem with RealtimeItem and updating event types like ConversationUpdate to RealtimeUpdate. [1] [2] [3]

Unit Test Updates:

  • Updated test cases to use new data structures, such as replacing IReadOnlyList<string> with IReadOnlyList<ReasoningSummaryPart> and adapting related assertions. [1] [2]
  • Added OPENAI001 to NoWarn lists in several .csproj files to suppress warnings related to the OpenAI SDK. [1] [2] [3]

@stephentoub stephentoub requested a review from a team as a code owner July 9, 2025 00:37
@moonbox3 moonbox3 added .NET Issue or Pull requests regarding .NET code kernel.core labels Jul 10, 2025
@github-actions github-actions Bot changed the title Update to latest M.E.AI{.Abstractions} .Net: Update to latest M.E.AI{.Abstractions} Jul 10, 2025
@moonbox3 moonbox3 added the kernel Issues or pull requests impacting the core kernel label Jul 17, 2025
@rogerbarreto rogerbarreto changed the title .Net: Update to latest M.E.AI{.Abstractions} .Net: Update to latest M.E.AI{.Abstractions} + OpenAI Related Packages Jul 17, 2025
@stephentoub stephentoub added this pull request to the merge queue Jul 18, 2025
Merged via the queue into microsoft:main with commit d2b22ef Jul 18, 2025
19 checks passed
@stephentoub stephentoub deleted the updatemeai branch July 18, 2025 09:14
jcruzmot-te pushed a commit to thousandeyes/aia-semantic-kernel that referenced this pull request Sep 15, 2025
microsoft#12685)

This pull request updates package dependencies, refactors the OpenAI
Realtime demo to align with API changes, and modifies related unit tests
to reflect these updates. The most significant changes include updating
package versions, transitioning from the `RealtimeConversation` API to
the `Realtime` API, and adjusting test logic to accommodate updated data
structures.

### Dependency Updates:

* Updated `Azure.AI.OpenAI` to version `2.2.0-beta.5` and `OpenAI` to
version `2.2.0`.
[[1]](diffhunk://#diff-21abc2ac38e0ade95299a2450724507fe1d080c383a3024337f9177278c64186L22-R22)
[[2]](diffhunk://#diff-21abc2ac38e0ade95299a2450724507fe1d080c383a3024337f9177278c64186L73-R73)
* Updated `System.Text.Json` to version `8.0.6`.
* Upgraded `Microsoft.Extensions.AI` and related libraries to version
`9.7.1`.

### OpenAI Realtime Demo Refactor:

* Replaced `RealtimeConversationClient` and related classes with
`RealtimeClient` and its updated API. This includes changes to session
initialization, configuration, and item handling in `Program.cs`.
[[1]](diffhunk://#diff-fa8b1514e6458341bf08441b1dc14550fb9bb75d2a0c108c75e1615c2e2ba09dL11-R19)
[[2]](diffhunk://#diff-fa8b1514e6458341bf08441b1dc14550fb9bb75d2a0c108c75e1615c2e2ba09dL36-R45)
[[3]](diffhunk://#diff-fa8b1514e6458341bf08441b1dc14550fb9bb75d2a0c108c75e1615c2e2ba09dL378-R400)
* Adjusted method calls and data types to align with the new API, such
as replacing `ConversationItem` with `RealtimeItem` and updating event
types like `ConversationUpdate` to `RealtimeUpdate`.
[[1]](diffhunk://#diff-fa8b1514e6458341bf08441b1dc14550fb9bb75d2a0c108c75e1615c2e2ba09dL65-R70)
[[2]](diffhunk://#diff-fa8b1514e6458341bf08441b1dc14550fb9bb75d2a0c108c75e1615c2e2ba09dL85-R84)
[[3]](diffhunk://#diff-fa8b1514e6458341bf08441b1dc14550fb9bb75d2a0c108c75e1615c2e2ba09dL229-R228)

### Unit Test Updates:

* Updated test cases to use new data structures, such as replacing
`IReadOnlyList<string>` with `IReadOnlyList<ReasoningSummaryPart>` and
adapting related assertions.
[[1]](diffhunk://#diff-3e486c31e4424c1a3ea61e23b1f7a266d186a4016ad57d7187dacf7b4bc8140fL198-R206)
[[2]](diffhunk://#diff-8ea1809160a96b9a3ebca5c1695353800f302aa2c5aabb4a2be51c6494f6f315L105-R105)
* Added `OPENAI001` to `NoWarn` lists in several `.csproj` files to
suppress warnings related to the OpenAI SDK.
[[1]](diffhunk://#diff-ae520434a4ad683f6736397dfbd0b308dda10dbce75af0c5064efbb3b0059dc0L11-R11)
[[2]](diffhunk://#diff-5703c2716d4b9753ae67ce3c1434595c4adbff1eb6564dd2fa0a0882c3925551L8-R8)
[[3]](diffhunk://#diff-8788687b51a5a626ca287b5c18f667bf1f5fa9b13af4ee425765f8e84b765ac3L10-R10)

---------

Co-authored-by: Mark Wallace <127216156+markwallace-microsoft@users.noreply.github.com>
Co-authored-by: Roger Barreto <19890735+rogerbarreto@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kernel.core kernel Issues or pull requests impacting the core kernel .NET Issue or Pull requests regarding .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants