AIReportingConfigurationBuilder.AddPromptToReportConverter(Action<AIPromptToReportConverterConfigurationBuilder>) Method
Activates AI-powered Prompt-to-Report functionality in the Web Report Designer.
Namespace: DevExpress.AspNetCore.Reporting
Assembly: DevExpress.AIIntegration.AspNetCore.Reporting.v25.1.dll
NuGet Package: DevExpress.AIIntegration.AspNetCore.Reporting
Declaration
public AIReportingConfigurationBuilder AddPromptToReportConverter(
Action<AIPromptToReportConverterConfigurationBuilder> configure
)
Parameters
Name | Type | Description |
---|---|---|
configure | Action<AIPromptToReportConverterConfigurationBuilder> | An Action<T> delegate method that allows you to configure AI-powered Prompt-to-Report functionality in Web Report Designer. |
Returns
Type | Description |
---|---|
AIReportingConfigurationBuilder | An AIReportingConfigurationBuilder object that can be used to further configure the AI-powered functionality in Web Document Viewer and Web Report Designer. |
Remarks
The following code activates the AI-powered Prompt-to-Report functionality the Report Wizard, adds a custom prompt and enables the option that automatically resolves control overlapping:
// ...
builder.Services.AddDevExpressAI(config => {
config.AddWebReportingAIIntegration(aiConfig => {
aiConfig.AddPromptToReportConverter(options => {
options.ConfigurePredefinedPrompts(prompts => {
prompts.Add(new AIReportPrompt {
Title = "Custom Prompt 1",
Text = "Custom Prompt Text"
});
})
.FixLayoutErrors()
.SetRetryAttemptCount(5);
});
});
});
The AI Prompt-to-Report option appears in the Report Wizard that allows users to create reports by specifying a prompt:
Review the following help topic for more information on AI-powered Prompt-to-Report functionality: Generate Reports From Prompts in Web Report Designer (CTP).