github dotnet/extensions v10.4.1

2 days ago

This release of the Microsoft.Extensions.AI packages adds new experimental APIs for Realtime client sessions and Text-to-Speech, along with OpenTelemetry and middleware improvements.

Packages in this release

Package Version
Microsoft.Extensions.AI.Abstractions 10.4.1
Microsoft.Extensions.AI 10.4.1
Microsoft.Extensions.AI.OpenAI 10.4.1

Experimental API Changes

New Experimental APIs

  • New experimental API: Realtime Client Sessions #7285 and #7399
  • New experimental API: Text-to-Speech Client #7381

Changes to Experimental APIs

  • Hosted File Download Stream: write-path methods now explicitly throw NotSupportedException #7394

What's Changed

AI

  • Add ITextToSpeechClient abstraction, middleware, and OpenAI implementation #7381 by @stephentoub
  • Realtime Client Proposal #7285 by @tarekgh
  • Add VoiceActivityDetection options to realtime session abstractions #7399 by @tarekgh
  • Make UriContent mediaType parameter optional with inference from URI file extension #7398 by @stephentoub (co-authored by @Copilot)
  • Emit gen_ai.client.operation.exception via ILogger LoggerMessage on OpenTelemetry instrumentation classes #7379 by @stephentoub (co-authored by @Copilot)
  • Support invoke_workflow as an equivalent parent span to invoke_agent in FunctionInvokingChatClient #7382 by @stephentoub (co-authored by @Copilot)
  • Make HostedFileDownloadStream explicitly read-only #7394 by @stephentoub (co-authored by @Copilot)

Documentation Updates

  • Document JSON schema derivation for return types in AIFunctionFactory #7400 by @stephentoub (co-authored by @Copilot)

Test Improvements

Repository Infrastructure Updates

  • Update Package Validation Baseline to 10.4.0 #7389 by @jeffhandley (co-authored by @Copilot)
  • Update ModelContextProtocol libraries to version 1.0.0 #7340 by @stephentoub (co-authored by @Copilot)

Acknowledgements

Full Changelog: v10.4.0...v10.4.1

Don't miss a new extensions release

NewReleases is sending notifications on new releases.