AI integration packages for .NET MAUI, built on Microsoft.Extensions.AI abstractions.
| Package | Description |
|---|---|
Microsoft.Maui.AI.Attributes |
Source-generated AI tool contexts — [ExportAIFunction], DI binding, AOT-safe |
- Full documentation — API reference, samples, and equivalence rules
| Sample | Demonstrates |
|---|---|
AIExtensions.Sample.Hello |
Minimal end-to-end usage |
AIExtensions.Sample.DIParameters |
DI parameter binding with [FromServices] |
AIExtensions.Sample.Garden |
Full MAUI chat app with navigation, cart, approval flow |
AIExtensions.Sample.ChatPlayground |
Azure/Apple IChatClient requests, images and tools, automatic recording, and offline replay with portable tests |
- GitHub Actions:
ci-ai.yml - Solution filter:
AIExtensions.slnfincludes the MAUI playground. The portableAIExtensions.Packages.slnfincludes the recording/replay tests and is used by the Windows official packaging job and package/test CI job. A separate macOS CI job builds the MAUI sample with the required workloads and native Apple dependencies.
- .NET 10
⚠️ These packages are experimental. APIs may change between releases.