At the core of Microsoft.Extensions.AI is an IChatClient, which serves as a unified approach to working with various OpenAI service providers.
It utilizes a list of messages (IList) to provide input for CompleteAsync().
The different types of content supported by Microsoft.Extensions.AI all inherit from the base class AIContent, which provides shared functionalities.
The provided code examples demonstrate how these content types can be effectively used in practice, making the library a powerful tool for developers looking to integrate AI capabilities into their applications.