Paul Krill
Editor at Large

Microsoft previews AI ‘building blocks’ for .NET

news
Oct 10, 20242 mins

Packages provide .NET developers with essential abstractions for integrating AI services into .NET apps and libraries, plus middleware for adding key capabilities.

An assortment of colorful building blocks. Build, assemble, WebAssembly
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.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author