Packages provide .NET developers with essential abstractions for integrating AI services into .NET apps and libraries, plus middleware for adding key capabilities. Credit: locrifa/Shutterstock Microsoft is previewing packages geared to integrating generative AI services into .NET applications. Called Microsoft.Extensions.AI.Abstractions and Microsoft.Extensions.AI libraries, the packages are available in preview as of October 8. The packages are described as unified AI building blocks for .NET. The Microsoft.Extensions.AI.Abstractions and Microsoft.Extensions.AI packages provide the .NET ecosystem with essential abstractions for integrating AI services into .NET applications and libraries, along with middleware for adding key capabilities, Microsoft said in a blog post. Microsoft.Extensions.AI is a set of core libraries developed in collaboration with developers across the .NET ecosystem. The libraries provide a unified layer of C# abstractions for interacting with AI services such as large language models (LLMs), embeddings, and middleware. Core benefits of the Microsoft.Extensions.AI libraries include: Providing a consistent set of APIs and conventions for integrating AI services into .NET applications. Allowing .NET library authors to use AI services without being tied to a specific provider. Enabling .NET developers to experiment with different packages using the same underlying abstractions, maintaining a single API throughout an application. Simplifying the addition of new capabilities and facilitating the componentization and testing of applications. Instructions on getting started with the Microsoft.Extensions.AI packages can be found in the October 8 blog post. Microsoft’s current focus is on creating abstractions that can be implemented across various services, the company said. There is no plan to release APIs tailored to any specific provider’s services. Microsoft’s goal is to act as a unifying layer within the .NET ecosystem, enabling developers to choose preferred frameworks and libraries while ensuring integration and collaboration across the ecosystem. In explaining the libraries, Microsoft’s Luis Quintanilla, program manager for the developer division, said AI capabilities are rapidly evolving, with common patterns emerging for functionality such as chat, embeddings, and tool calling. Unified abstractions are crucial for developers to work across different sources, he said. Related content news Spin 3.0 supports polyglot development using Wasm components Fermyon’s open source framework for building server-side WebAssembly apps allows developers to compose apps from components created with different languages. By Paul Krill Nov 18, 2024 2 mins Microservices Serverless Computing Development Libraries and Frameworks how-to How to use DispatchProxy for AOP in .NET Core Take advantage of the DispatchProxy class in C# to implement aspect-oriented programming by creating proxies that dynamically intercept method calls. By Joydip Kanjilal Nov 14, 2024 7 mins Microsoft .NET C# Development Libraries and Frameworks news Microsoft’s .NET 9 arrives, with performance, cloud, and AI boosts Cloud-native apps, AI-enabled apps, ASP.NET Core, Aspire, Blazor, MAUI, C#, and F# all get boosts with the latest major rev of the .NET platform. By Paul Krill Nov 12, 2024 4 mins C# Generative AI Microsoft .NET feature Can Wasm replace containers? WebAssembly revolutionized browser apps, and promises to upend the server stack. How will it impact containers and Kubernetes? Six experts weigh in. By Bill Doerrfeld Nov 11, 2024 12 mins Containers Kubernetes Cloud Native Resources Videos