-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Labels
Description
Description
Design IServiceCollection extension methods that enable easy registration of AI services in .NET MAUI applications with dependency injection.
Goals
- Make it trivial to add AI to a MAUI app (1-2 lines in
MauiProgram.cs) - Support progressive disclosure (simple by default, powerful when needed)
- Follow .NET DI conventions
- Enable platform-agnostic code while allowing platform-specific overrides
Design Proposal
Proposal PR can be found here: #32545
Discussion Points
- Which API style should we use?
- Should platform detection be compile-time or runtime?
- Should we expose platform-specific methods (e.g.,
AddAppleIntelligenceChatClient())? - How should we structure configuration options?
- What service lifetime should be used (Singleton recommended)?