-
Book Overview & Buying
-
Table Of Contents
Practical C# Projects with .NET
By :
In the next part of this book, we'll be moving into the realms of AI and machine learning. AI is a rapidly evolving and expanding world at the moment, with many different model providers and capabilities. This can make working with different models cumbersome unless there's some common interface to help standardize things.
This is what Microsoft.Extensions.AI offers: a unified set of interfaces and objects to represent interactions with conversational AI systems, such as the IChatClient that we'll talk about later on in this section.
Why bother with an abstraction layer?
Many developers might wonder why we're bothering at all with an abstraction layer such as Microsoft.Extensions.AI for a simple side project. After all, having an interface to represent a dependency that may change can be helpful for a real-world system, but is maybe less useful for something short-lived and fun, such as our...