Back to contents

Chapter 2B

About Microsoft AI Extensions

Static reading edition generated from the About Microsoft AI Extensions notebook.

Workshop (Setup) - About Microsoft AI Extensions

The Microsoft.Extensions.AI libraries provides core exchange types and abstractions for interacting with AI services, such as small and large language models (SLMs and LLMs). They also provide the ability to register services like logging and caching in your dependency injection (DI) container.

For those already familiar with Semantic Kernel, think of Microsoft.Extensions.AI as the evolution of the Microsoft.SemanticKernel.Abstractions package that you’re currently using to access remote AI services. It is precisely this exciting upgrade that allows AI providers to rapidly adopt and align their services with this new extraction layer.

Core benefits:

  • Unified API: Offers a consistent and standard set of APIs and conventions for integrating AI services into .NET applications.* Flexibility: Allows .NET library authors to use AI services without forcing a specific AI provider, making it parameterizable with any provider.
  • Ease of Use: Enables .NET application developers to experiment with different packages using the same underlying abstractions and to utilize a single API throughout their application.
  • Componentization: Facilitates the addition of new capabilities and simplifies the componentization and testing of applications.