xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-aireportingconfigurationbuilder-5b9fd831.md
Activates AI-powered Prompt-to-Expression functionality in the Web Report Designer.
Namespace : DevExpress.AspNetCore.Reporting
Assembly : DevExpress.AIIntegration.AspNetCore.Reporting.v25.2.dll
NuGet Package : DevExpress.AIIntegration.AspNetCore.Reporting
public AIReportingConfigurationBuilder AddPromptToExpressionConverter()
Public Function AddPromptToExpressionConverter As AIReportingConfigurationBuilder
| Type | Description |
|---|---|
| AIReportingConfigurationBuilder |
A DevExpress.AspNetCore.Reporting.AIReportingConfigurationBuilder object that can be used to further configure the AI-powered functionality in Web Document Viewer and Web Report Designer.
|
The following code activates the Prompt-to-Expression functionality in an ASP.NET Core application:
// ...
builder.Services.AddSingleton(chatClient);
builder.Services.AddDevExpressAI((config) => {
config.AddWebReportingAIIntegration(options =>
options.AddPromptToExpressionConverter());
});
Filter Editor and Expression Editor now display the Prompt-to-Expression field. Specify a prompt in natural language and click the Send button to generate an expression:
Expression Editor Filter Editor
The AI model generates expressions based on the report-specific expression syntax. The model has access to the data source schema, report layout, and any custom functions registered in your application. You can refer to these elements in your prompts. Detailed prompts increase output quality.
See Also
Generate Expressions From Prompts (Web Report Designer)
AIReportingConfigurationBuilder Class