Back to Devexpress

ReportPromptToReportBehavior Class

xtrareports-devexpress-dot-aiintegration-dot-winforms-dot-reporting-5c0a0b55.md

latest4.8 KB
Original Source

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.2.dll

NuGet Package : DevExpress.AIIntegration.WinForms.Reporting

Declaration

csharp
public class ReportPromptToReportBehavior :
    ReportDesignerBehaviorBase
vb
Public Class ReportPromptToReportBehavior
    Inherits ReportDesignerBehaviorBase

The following members return ReportPromptToReportBehavior objects:

Remarks

The following code registers ReportPromptToReportBehavior and attaches it to the WinForms Report Designer control:

csharp
using DevExpress.AIIntegration.WinForms.Reporting;
// ...
public partial class Form1 : Form {
    public Form1() {
        InitializeComponent();
        behaviorManager1.Attach<ReportPromptToReportBehavior>(reportDesigner1, behavior => {
          // Specify behavior settings.
        });
    }
}
vb
Imports DevExpress.AIIntegration.WinForms.Reporting
' ...
Partial Public Class Form1
    Inherits Form

    Public Sub New()
        InitializeComponent()
        behaviorManager1.Attach(Of ReportPromptToReportBehavior)(reportDesigner1, Sub(behavior)
      ' Specify behavior settings.
        End Sub)
    End Sub
End Class

Use ReportPromptToReportBehavior.Properties to access the behavior’s settings. The following settings are available:

ReportPromptToReportBehaviorProperties.FixLayoutErrorsSpecifies whether to automatically resolve report control overlapping.ReportPromptToReportBehaviorProperties.PredefinedPromptsSpecifies predefined prompts that can be used to create a report in the Report Wizard.ReportPromptToReportBehaviorProperties.RetryAttemptCountSpecifies the number of attempts to fix report layout errors that may appear in the LLM response.ReportPromptToReportBehaviorProperties.TemperatureControls 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).

Inheritance

Object DevExpress.Utils.MVVM.BehaviorBase DevExpress.Utils.Behaviors.Behavior DevExpress.Utils.Behaviors.Behavior<DevExpress.AIIntegration.WinForms.Reporting.Internal.IReportDesignerBehaviorSource> DevExpress.AIIntegration.WinForms.Reporting.Internal.ReportDesignerBehaviorBase ReportPromptToReportBehavior

See Also

ReportPromptToReportBehavior Members

DevExpress.AIIntegration.WinForms.Reporting Namespace