Microsoft.Extensions.AI 9.3.0-preview.1.25114.11
Microsoft.Extensions.AI
Provides utilities for working with generative AI components.
Install the package
From the command-line:
dotnet add package Microsoft.Extensions.AI
Or directly in the C# project file:
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.AI" Version="[CURRENTVERSION]" />
</ItemGroup>
Usage Examples
Please refer to the README for the Microsoft.Extensions.AI.Abstractions package.
Feedback & Contributing
We welcome feedback and contributions in our GitHub repo.
Running the integration tests
If you're working on this repo and want to run the integration tests, e.g., those in Microsoft.Extensions.AI.OpenAI.Tests, you must first set endpoints and keys. You can either set these as environment variables or - better - using .NET's user secrets feature as shown below.
Configuring OpenAI tests (OpenAI)
Run commands like the following. The settings will be saved in your user profile.
cd test/Libraries/Microsoft.Extensions.AI.Integration.Tests
dotnet user-secrets set OpenAI:Mode OpenAI
dotnet user-secrets set OpenAI:Key abcdefghijkl
Optionally also run the following. The values shown here are the defaults if you don't specify otherwise:
dotnet user-secrets set OpenAI:ChatModel gpt-4o-mini
dotnet user-secrets set OpenAI:EmbeddingModel text-embedding-3-small
Configuring OpenAI tests (Azure OpenAI)
Run commands like the following. The settings will be saved in your user profile.
cd test/Libraries/Microsoft.Extensions.AI.Integration.Tests
dotnet user-secrets set OpenAI:Mode AzureOpenAI
dotnet user-secrets set OpenAI:Endpoint https://YOUR_DEPLOYMENT.openai.azure.com/
dotnet user-secrets set OpenAI:Key abcdefghijkl
Optionally also run the following. The values shown here are the defaults if you don't specify otherwise:
dotnet user-secrets set OpenAI:ChatModel gpt-4o-mini
dotnet user-secrets set OpenAI:EmbeddingModel text-embedding-3-small
Your account must have models matching these names.
Configuring Azure AI Inference tests
Run commands like the following. The settings will be saved in your user profile.
cd test/Libraries/Microsoft.Extensions.AI.Integration.Tests
dotnet user-secrets set AzureAIInference:Endpoint https://YOUR_DEPLOYMENT.azure.com/
dotnet user-secrets set AzureAIInference:Key abcdefghijkl
Optionally also run the following. The values shown here are the defaults if you don't specify otherwise:
dotnet user-secrets set AzureAIInference:ChatModel gpt-4o-mini
dotnet user-secrets set AzureAIInference:EmbeddingModel text-embedding-3-small
Configuring Ollama tests
Run commands like the following. The settings will be saved in your user profile.
cd test/Libraries/Microsoft.Extensions.AI.Integration.Tests
dotnet user-secrets set Ollama:Endpoint http://localhost:11434/
Showing the top 20 packages that depend on Microsoft.Extensions.AI.
| Packages | Downloads |
|---|---|
|
DevExpress.ExpressApp.AI.Blazor
Target Platform/Framework: Web, Mobile
DevExpress Product Libraries Used: XAF (Cross-Platform .NET App UI & Web API) (https://www.devexpress.com/xaf)
Available in the following DevExpress Subscription(s): Universal
|
2 |
|
Microsoft.Agents.AI
Provides Microsoft Agent Framework core functionality.
|
1 |
|
DevExpress.AIIntegration.Reporting.Common
Target Platform/Framework: Cross-Platform
DevExpress Product Libraries Used: DevExpress AI-powered Extensions for OpenAI, Azure, Ollama, Semantic Kernel (https://www.devexpress.com/ai)
Available in the following DevExpress Subscription(s): Universal, DXperience, WinForms, ASP.NET & Blazor (includes DevExtreme), WPF, Reporting
|
1 |
|
DevExpress.ExpressApp.AI
Target Platform/Framework: Desktop, Web, Mobile
DevExpress Product Libraries Used: XAF (Cross-Platform .NET App UI & Web API) (https://www.devexpress.com/xaf)
Available in the following DevExpress Subscription(s): Universal
|
1 |
|
DevExpress.AIIntegration
Target Platform/Framework: Cross-Platform
DevExpress Product Libraries Used: DevExpress AI-powered Extensions for OpenAI, Azure, Ollama, Semantic Kernel (https://www.devexpress.com/ai)
Available in the following DevExpress Subscription(s): Universal, DXperience, WinForms, ASP.NET & Blazor (includes DevExtreme), WPF, Reporting, Office File API
|
1 |
.NET Framework 4.6.2
- Microsoft.Extensions.AI.Abstractions (>= 9.3.0-preview.1.25114.11)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- System.Diagnostics.DiagnosticSource (>= 9.0.2)
- System.Text.Json (>= 9.0.2)
- System.Threading.Channels (>= 9.0.2)
.NET 8.0
- Microsoft.Extensions.AI.Abstractions (>= 9.3.0-preview.1.25114.11)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- System.Diagnostics.DiagnosticSource (>= 9.0.2)
- System.Text.Json (>= 9.0.2)
- System.Threading.Channels (>= 9.0.2)
.NET 9.0
- Microsoft.Extensions.AI.Abstractions (>= 9.3.0-preview.1.25114.11)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- System.Diagnostics.DiagnosticSource (>= 9.0.2)
- System.Text.Json (>= 9.0.2)
- System.Threading.Channels (>= 9.0.2)
.NET Standard 2.0
- Microsoft.Extensions.AI.Abstractions (>= 9.3.0-preview.1.25114.11)
- Microsoft.Extensions.Caching.Abstractions (>= 9.0.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.2)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.2)
- System.Diagnostics.DiagnosticSource (>= 9.0.2)
- System.Text.Json (>= 9.0.2)
- System.Threading.Channels (>= 9.0.2)
| Version | Downloads | Last updated |
|---|---|---|
| 10.7.0 | 0 | 06/09/2026 |
| 10.6.0 | 1 | 05/28/2026 |
| 10.5.2 | 1 | 05/28/2026 |
| 10.5.1 | 1 | 05/28/2026 |
| 10.5.0 | 1 | 05/28/2026 |
| 10.4.1 | 1 | 05/28/2026 |
| 10.4.0 | 1 | 05/28/2026 |
| 10.3.0 | 1 | 05/28/2026 |
| 10.2.0 | 1 | 05/28/2026 |
| 10.1.1 | 1 | 05/28/2026 |
| 10.1.0 | 1 | 05/28/2026 |
| 10.0.1 | 1 | 05/28/2026 |
| 10.0.0 | 1 | 05/28/2026 |
| 9.10.2 | 1 | 05/28/2026 |
| 9.10.1 | 1 | 05/28/2026 |
| 9.10.0 | 1 | 05/28/2026 |
| 9.9.1 | 1 | 05/28/2026 |
| 9.9.0 | 1 | 05/28/2026 |
| 9.8.0 | 1 | 05/28/2026 |
| 9.7.1 | 1 | 05/28/2026 |
| 9.7.0 | 1 | 05/28/2026 |
| 9.6.0 | 1 | 05/28/2026 |
| 9.5.0 | 1 | 05/28/2026 |
| 9.5.0-preview.1.25262.9 | 1 | 05/28/2026 |
| 9.4.4-preview.1.25259.16 | 1 | 05/28/2026 |
| 9.4.3-preview.1.25230.7 | 1 | 05/28/2026 |
| 9.4.0-preview.1.25207.5 | 1 | 05/28/2026 |
| 9.3.0-preview.1.25161.3 | 1 | 05/28/2026 |
| 9.3.0-preview.1.25114.11 | 1 | 05/28/2026 |
| 9.1.0-preview.1.25064.3 | 1 | 05/28/2026 |
| 9.0.1-preview.1.24570.5 | 1 | 05/28/2026 |
| 9.0.0-preview.9.24556.5 | 1 | 05/28/2026 |
| 9.0.0-preview.9.24525.1 | 1 | 05/28/2026 |
| 9.0.0-preview.9.24507.7 | 1 | 05/28/2026 |