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
Install
| Product | Versions |
|---|---|
| .NET | |
| Other |
README
DevExpress AI Integration
DevExpress.AIIntegration provides resources for the following DevExpress products:
- DevExpress AI Chat controls for .NET applications.
- DevExpress AI-powered Extensions that incorporate natural language capabilities into DevExpress UI Controls and Libraries. These capabilities allow users to edit and analyze documents, design reports, and perform smart actions (Smart Paste, Smart Autocomplete, Smart Search).
Examples
Install the DevExpress.AIIntegration package:
dotnet add package DevExpress.AIIntegration
Azure AI Translator & AI Language Support
Install the following NuGet packages to use Azure AI Language services (including Azure AI Translator and Azure AI Language for text summarization):
dotnet add package DevExpress.AIIntegration.Azure.TextAnalytics
dotnet add package DevExpress.AIIntegration.Azure.Translation
The following example registers an Azure Text Analytics client and uses an AI-powered extension to generate a summary of originalText in a console application:
using Azure;
using Azure.AI.TextAnalytics;
using DevExpress.AIIntegration;
using DevExpress.AIIntegration.Extensions;
AIExtensionsContainerDefault defaultAIExtensionsContainer;
RegisterTextAnalyticsService(
Environment.GetEnvironmentVariable("AZURE_TEXT_ANALYTICS_ENDPOINT"),
Environment.GetEnvironmentVariable("AZURE_TEXT_ANALYTICS_API_KEY")
);
string originalText = "This must be a long text...";
var response = await defaultAIExtensionsContainer.AbstractiveSummaryAsync(
new AbstractiveSummaryRequest(originalText) { Language = "de", SentenceCount = 3 }
);
Console.WriteLine(response);
void RegisterTextAnalyticsService(string azureTextAnalyticsEndpoint, string azureTextAnalyticsAIKey)
{
defaultAIExtensionsContainer = new AIExtensionsContainerDefault();
var textAnalyticsClient = new TextAnalyticsClient(
new Uri(azureTextAnalyticsEndpoint),
new AzureKeyCredential(azureTextAnalyticsAIKey)
);
defaultAIExtensionsContainer.RegisterTextAnalyticsAzureAIService(textAnalyticsClient);
}
Customize DevExpress AI-powered Extensions
AI-powered Extensions ship with prebuilt prompts. The following example creates a new "Change Style" extension and registers it along with predefined styles. The new class overrides the GetSystemPrompt method to customize the prompt:
// Register the WilliamShakespeareStyleExtension within the default container
// This extension overrides the DevExpress ChangeStyleExtension
AIExtensionsContainerDesktop.Default.Register<ChangeStyleRequest, WilliamShakespeareStyleExtension>();
public class WilliamShakespeareStyleExtension : ChangeStyleExtension {
public WilliamShakespeareStyleExtension(IServiceProvider serviceProvider) : base(serviceProvider) { }
protected override string GetSystemPrompt(ChangeStyleRequest request) {
return "Rewrite this text in the William Shakespeare style.";
}
}
Evaluation Period, Pricing Options, and Licensing Terms
Whether you own a license or want to start a 30-day evaluation period, download and register your DevExpress license key. To obtain your key, log in to the DevExpress Download Manager. Use your existing DevExpress.com account or create a new account for free. For key registration instructions, see License Key for DevExpress Products.
If you purchase a license after evaluating a product, re-register your updated DevExpress license key to remove evaluation version warnings/messages.
This package is included in the following commercial subscriptions:
See DevExpress Subscriptions & Licensing for subscription comparison tables, purchasing FAQ, and licensing information.
Related Components/Packages
DevExpress.AIIntegration.Blazor.Chat - DevExpress AI-powered Chat Control.
dotnet add package DevExpress.AIIntegration.Blazor.Chat
Demos
- DevExpress Blazor Online Demos
- DevExpress Blazor Demos on GitHub
- DevExpress WinForms Demos on GitHub
- DevExpress WPF Demos on GitHub
GitHub Examples
- Integrate DevExpress AI-powered Text Extensions into Console, WinForms, and WPF Apps
- Blazor AI Chat - How to Add the DevExpress Blazor AI Chat Component to Your Next Blazor, MAUI, WPF, and WinForms application
Documentation
Software Bill of Materials (SBOM)
To access SBOM files for DevExpress packages, see the following article: Software Bill of Materials (SBOM) for DevExpress .NET assemblies/NuGet packages, JavaScript, VCL and other redistributable artifacts.
See Also: Information Security | Security - What You Need to Know
Useful Online Resources
Changes from Previous Version
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.