ReportPromptToReportBehavior Class
An AI-powered Prompt-to-Report functionality that uses natural language processing to build reports based on text descriptions.
Namespace: DevExpress.AIIntegration.WinForms.Reporting
Assembly: DevExpress.AIIntegration.WinForms.Reporting.v25.1.dll
NuGet Package: DevExpress.AIIntegration.WinForms.Reporting
#Declaration
#Related API Members
The following members return ReportPromptToReportBehavior objects:
#Remarks
The following code registers ReportPromptToReportBehavior
and attaches it to the WinForms Report Designer control:
using DevExpress.AIIntegration.WinForms.Reporting;
// ...
public partial class Form1 : Form {
public Form1() {
InitializeComponent();
behaviorManager1.Attach<ReportPromptToReportBehavior>(reportDesigner1, behavior => {
// Specify behavior settings.
});
}
}
Use ReportPromptToReportBehavior.Properties to access the behavior’s settings. The following settings are available:
- ReportPromptToReportBehaviorProperties.FixLayoutErrors
- Specifies whether to automatically resolve report control overlapping.
- ReportPromptToReportBehaviorProperties.PredefinedPrompts
- Specifies predefined prompts that can be used to create a report in the Report Wizard.
- ReportPromptToReportBehaviorProperties.RetryAttemptCount
- Specifies the number of attempts to fix report layout errors that may appear in the LLM response.
- ReportPromptToReportBehaviorProperties.Temperature
- Controls output randomness. Lower temperatures (values between 0f and 0.5f) yield more predictable and focused outputs, while higher temperatures (values between 0.5f and 1f) produce more diverse and creative responses. The default value is 0f.
Review the following help topic for more information on how to use this functionality in the WinForms Report Designer: Prompt to Report Behavior in the WinForms Report Designer (CTP).